pub struct Unit<'a, T> {
pub value: T,
pub prefix: PrefixTuple,
pub suffix: &'a str,
}Fields§
§value: T§prefix: PrefixTuple§suffix: &'a strImplementations§
Source§impl<'a, T> Unit<'a, T>
impl<'a, T> Unit<'a, T>
pub fn new(value: T, suffix: &'a str) -> Self
pub fn with_custom_prefix( value: T, prefix: PrefixTuple, suffix: &'a str, ) -> Self
pub fn get_prefix(&self) -> PrefixTuple
pub fn format(&self, fmt: &mut Formatter<'_>) -> Result
pub fn format_full_name(&self, fmt: &mut Formatter<'_>) -> Result
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for Unit<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Unit<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Unit<'a, T>where
T: Send,
impl<'a, T> Sync for Unit<'a, T>where
T: Sync,
impl<'a, T> Unpin for Unit<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for Unit<'a, T>where
T: 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