pub struct Hints<'s> {
pub print_width: usize,
pub indent_level: u16,
pub attr: bool,
pub ext: &'s str,
}Expand description
Hints provide some useful additional information to the external formatter.
Fields§
§print_width: usize§indent_level: u16current indent width = indent width in config * indent level
attr: boolWhether the code is inside attribute.
ext: &'s strFake file extension.
Auto Trait Implementations§
impl<'s> Freeze for Hints<'s>
impl<'s> RefUnwindSafe for Hints<'s>
impl<'s> Send for Hints<'s>
impl<'s> Sync for Hints<'s>
impl<'s> Unpin for Hints<'s>
impl<'s> UnwindSafe for Hints<'s>
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> 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