☰
ToOffset
Required Methods
to_offset
Implementations on Foreign Types
&'a T
usize
Implementors
In zed2::languages
?
Trait
zed2
::
languages
::
ToOffset
source
·
[
−
]
pub trait ToOffset { // Required method fn
to_offset
(&self, snapshot: &
BufferSnapshot
) ->
usize
; }
Required Methods
§
source
fn
to_offset
(&self, snapshot: &
BufferSnapshot
) ->
usize
Implementations on Foreign Types
§
source
§
impl<'a, T>
ToOffset
for
&'a T
where T:
ToOffset
,
source
§
fn
to_offset
(&self, content: &
BufferSnapshot
) ->
usize
source
§
impl
ToOffset
for
usize
source
§
fn
to_offset
(&self, snapshot: &
BufferSnapshot
) ->
usize
Implementors
§
source
§
impl
ToOffset
for
Anchor
source
§
impl
ToOffset
for
Point
source
§
impl
ToOffset
for
PointUtf16
source
§
impl
ToOffset
for
Unclipped
<
PointUtf16
>