[][src]Struct teensyduino::serial::ansi::EscapeSequence

pub struct EscapeSequence<'a> { /* fields omitted */ }

A structure defining an ansi escape sequence. To convert the structure to its string representation, use the Display implementation

Implementations

impl<'a> EscapeSequence<'a>[src]

pub const fn new() -> Self[src]

Create a new escape sequence with no information

pub const fn set_fg(self, color: Color) -> Self[src]

Set the foreground in the escape sequence

pub const fn set_bg(self, color: Color) -> Self[src]

Set the background for the escape sequence

pub const fn set_styles(self, styles: &'a [Style]) -> Self[src]

Set the styles in the escape sequence

Trait Implementations

impl<'a> Clone for EscapeSequence<'a>[src]

impl<'a> Copy for EscapeSequence<'a>[src]

impl<'a> Debug for EscapeSequence<'a>[src]

impl<'_> Display for EscapeSequence<'_>[src]

impl<'a> Eq for EscapeSequence<'a>[src]

impl<'a> PartialEq<EscapeSequence<'a>> for EscapeSequence<'a>[src]

impl<'a> StructuralEq for EscapeSequence<'a>[src]

impl<'a> StructuralPartialEq for EscapeSequence<'a>[src]

Auto Trait Implementations

impl<'a> Send for EscapeSequence<'a>

impl<'a> Sync for EscapeSequence<'a>

impl<'a> Unpin for EscapeSequence<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.