pub struct TextSelectionEndpoint { /* private fields */ }Expand description
A selection endpoint anchored to a participant’s content coordinates.
Implementations§
Source§impl TextSelectionEndpoint
impl TextSelectionEndpoint
Sourcepub const fn entity_id(&self) -> Option<EntityId>
pub const fn entity_id(&self) -> Option<EntityId>
Returns the participant which owns this endpoint, when it hit one.
Sourcepub const fn content_point(&self) -> Point<Pixels>
pub const fn content_point(&self) -> Point<Pixels>
Returns the participant-relative content point.
Sourcepub const fn content_key(&self) -> Option<TextSelectionContentKey>
pub const fn content_key(&self) -> Option<TextSelectionContentKey>
Returns participant-defined endpoint metadata captured when it hit a participant.
Trait Implementations§
Source§impl Clone for TextSelectionEndpoint
impl Clone for TextSelectionEndpoint
Source§fn clone(&self) -> TextSelectionEndpoint
fn clone(&self) -> TextSelectionEndpoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextSelectionEndpoint
Source§impl Debug for TextSelectionEndpoint
impl Debug for TextSelectionEndpoint
Source§impl PartialEq for TextSelectionEndpoint
impl PartialEq for TextSelectionEndpoint
impl StructuralPartialEq for TextSelectionEndpoint
Auto Trait Implementations§
impl Freeze for TextSelectionEndpoint
impl RefUnwindSafe for TextSelectionEndpoint
impl Send for TextSelectionEndpoint
impl Sync for TextSelectionEndpoint
impl Unpin for TextSelectionEndpoint
impl UnsafeUnpin for TextSelectionEndpoint
impl UnwindSafe for TextSelectionEndpoint
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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