Struct makepad_code_editor::text::Length
source · pub struct Length {
pub line_count: usize,
pub byte_count: usize,
}
Fields§
§line_count: usize
§byte_count: usize
Implementations§
Trait Implementations§
source§impl AddAssign<Length> for Length
impl AddAssign<Length> for Length
source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moresource§impl AddAssign<Length> for Position
impl AddAssign<Length> for Position
source§fn add_assign(&mut self, length: Length)
fn add_assign(&mut self, length: Length)
Performs the
+=
operation. Read moresource§impl Ord for Length
impl Ord for Length
source§impl PartialEq<Length> for Length
impl PartialEq<Length> for Length
source§impl PartialOrd<Length> for Length
impl PartialOrd<Length> for Length
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
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 moresource§impl SubAssign<Length> for Length
impl SubAssign<Length> for Length
source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl Copy for Length
impl Eq for Length
impl StructuralEq for Length
impl StructuralPartialEq for Length
Auto Trait Implementations§
impl RefUnwindSafe for Length
impl Send for Length
impl Sync for Length
impl Unpin for Length
impl UnwindSafe for Length
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