pub struct LinkPosition { /* private fields */ }Expand description
The terminal cells occupied by one styled run of a link.
Wrapping always produces multiple entries. A style change inside a link can also produce adjacent entries on the same row with the same ID.
Implementations§
Source§impl LinkPosition
impl LinkPosition
Sourcepub const fn link_id(&self) -> LinkId
pub const fn link_id(&self) -> LinkId
Returns the identity from markdown_model::Document::links.
Sourcepub const fn row(&self) -> DocumentRow
pub const fn row(&self) -> DocumentRow
Returns the zero-based document row before scrolling.
Trait Implementations§
Source§impl Clone for LinkPosition
impl Clone for LinkPosition
Source§impl Debug for LinkPosition
impl Debug for LinkPosition
impl Eq for LinkPosition
Source§impl PartialEq for LinkPosition
impl PartialEq for LinkPosition
impl StructuralPartialEq for LinkPosition
Auto Trait Implementations§
impl Freeze for LinkPosition
impl RefUnwindSafe for LinkPosition
impl Send for LinkPosition
impl Sync for LinkPosition
impl Unpin for LinkPosition
impl UnsafeUnpin for LinkPosition
impl UnwindSafe for LinkPosition
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more