pub struct Infix(/* private fields */);
Expand description
Like ANSIString
, but only displays the difference between two
styles.
This type implements the Display
trait, meaning it can be written to a
std::fmt
formatting without doing any extra allocation, and written to a
string with the .to_string()
method. For examples, see
Style::infix
.
Trait Implementations§
impl Copy for Infix
Auto Trait Implementations§
impl Freeze for Infix
impl RefUnwindSafe for Infix
impl Send for Infix
impl Sync for Infix
impl Unpin for Infix
impl UnwindSafe for Infix
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)