pub struct SgrState { /* private fields */ }Expand description
Active SGR attributes.
Carried across lines by the caller: a producer is free to set a colour on one line and reset it three lines later, and each pipe reader owns one of these for the life of the pipe. Not carried across pipes — stdout and stderr are independent streams whose interleaving in the buffer says nothing about either one’s state.
Trait Implementations§
impl Copy for SgrState
impl Eq for SgrState
impl StructuralPartialEq for SgrState
Auto Trait Implementations§
impl Freeze for SgrState
impl RefUnwindSafe for SgrState
impl Send for SgrState
impl Sync for SgrState
impl Unpin for SgrState
impl UnsafeUnpin for SgrState
impl UnwindSafe for SgrState
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.