Struct cosmic_text::TextLineIndex
source · [−]pub struct TextLineIndex(_);Expand description
Index of a text line
Implementations
Trait Implementations
sourceimpl Clone for TextLineIndex
impl Clone for TextLineIndex
sourcefn clone(&self) -> TextLineIndex
fn clone(&self) -> TextLineIndex
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TextLineIndex
impl Debug for TextLineIndex
sourceimpl Default for TextLineIndex
impl Default for TextLineIndex
sourcefn default() -> TextLineIndex
fn default() -> TextLineIndex
Returns the “default value” for a type. Read more
sourceimpl Ord for TextLineIndex
impl Ord for TextLineIndex
sourcefn cmp(&self, other: &TextLineIndex) -> Ordering
fn cmp(&self, other: &TextLineIndex) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TextLineIndex> for TextLineIndex
impl PartialEq<TextLineIndex> for TextLineIndex
sourcefn eq(&self, other: &TextLineIndex) -> bool
fn eq(&self, other: &TextLineIndex) -> bool
sourceimpl PartialOrd<TextLineIndex> for TextLineIndex
impl PartialOrd<TextLineIndex> for TextLineIndex
sourcefn partial_cmp(&self, other: &TextLineIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &TextLineIndex) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for TextLineIndex
impl Eq for TextLineIndex
impl StructuralEq for TextLineIndex
impl StructuralPartialEq for TextLineIndex
Auto Trait Implementations
impl RefUnwindSafe for TextLineIndex
impl Send for TextLineIndex
impl Sync for TextLineIndex
impl Unpin for TextLineIndex
impl UnwindSafe for TextLineIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more