pub struct AnsiBlock<'a> { /* private fields */ }Expand description
An structure which represents a text and it’s grafic settings.
Implementations
sourceimpl<'a> AnsiBlock<'a>
impl<'a> AnsiBlock<'a>
sourcepub fn has_ansi(&self) -> bool
pub fn has_ansi(&self) -> bool
Has_ansi checks wheather any grafic sequences are set in the AnsiBlock.
sourcepub fn start(&self) -> AnsiSequenceStart<'_>
pub fn start(&self) -> AnsiSequenceStart<'_>
Returns a AnsiSequenceStart object which can be used to produce a ansi sequences which sets the grafic mode.
sourcepub fn end(&self) -> AnsiSequenceEnd<'_>
pub fn end(&self) -> AnsiSequenceEnd<'_>
Returns a AnsiSequenceEnd object which can be used to produce a ansi sequences which ends the grafic mode.
Trait Implementations
impl<'a> StructuralPartialEq for AnsiBlock<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for AnsiBlock<'a>
impl<'a> Send for AnsiBlock<'a>
impl<'a> Sync for AnsiBlock<'a>
impl<'a> Unpin for AnsiBlock<'a>
impl<'a> UnwindSafe for AnsiBlock<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more