pub struct Len<Inner: AsRef<str>>(/* private fields */);
Expand description
Treat str::len
as width.
Implementations§
Trait Implementations§
Source§impl<Inner: AsRef<str>> AsMut<Inner> for Len<Inner>
impl<Inner: AsRef<str>> AsMut<Inner> for Len<Inner>
Source§fn as_mut(&mut self) -> &mut Inner
fn as_mut(&mut self) -> &mut Inner
Converts this type into a mutable reference of the (usually inferred) input type.
impl<Inner: Copy + AsRef<str>> Copy for Len<Inner>
impl<Inner: Eq + AsRef<str>> Eq for Len<Inner>
impl<Inner: AsRef<str>> StructuralPartialEq for Len<Inner>
Auto Trait Implementations§
impl<Inner> Freeze for Len<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for Len<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for Len<Inner>where
Inner: Send,
impl<Inner> Sync for Len<Inner>where
Inner: Sync,
impl<Inner> Unpin for Len<Inner>where
Inner: Unpin,
impl<Inner> UnwindSafe for Len<Inner>where
Inner: UnwindSafe,
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> 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