[−][src]Struct teensyduino::serial::ansi::EscapeSequence
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]
fn clone(&self) -> EscapeSequence<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn eq(&self, other: &EscapeSequence<'a>) -> bool
[src]
fn ne(&self, other: &EscapeSequence<'a>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,