pub struct LineWidth(/* private fields */);Expand description
The maximum visual width to which the formatter should try to limit a line.
Implementations§
Trait Implementations§
Source§impl CacheKey for LineWidth
impl CacheKey for LineWidth
fn cache_key(&self, key: &mut CacheKeyHasher)
fn cache_key_slice(data: &[Self], state: &mut CacheKeyHasher)where
Self: Sized,
impl Copy for LineWidth
impl Eq for LineWidth
Source§impl From<LineWidth> for PrintWidth
impl From<LineWidth> for PrintWidth
Source§impl From<NonZero<u16>> for LineWidth
impl From<NonZero<u16>> for LineWidth
Source§fn from(value: NonZeroU16) -> Self
fn from(value: NonZeroU16) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for LineWidth
Auto Trait Implementations§
impl Freeze for LineWidth
impl RefUnwindSafe for LineWidth
impl Send for LineWidth
impl Sync for LineWidth
impl Unpin for LineWidth
impl UnsafeUnpin for LineWidth
impl UnwindSafe for LineWidth
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