pub type AnsiByteString<'a> = AnsiGenericString<'a, [u8]>;
Expand description
An AnsiByteString
represents a formatted series of bytes. Use
AnsiByteString
when styling text with an unknown encoding.
Aliased Type§
struct AnsiByteString<'a> { /* private fields */ }
Implementations§
Source§impl<'a> AnsiByteString<'a>
impl<'a> AnsiByteString<'a>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes
Trait Implementations
Source§impl<'a, S: 'a + ToOwned + ?Sized> Clone for AnsiGenericString<'a, S>
Cloning an AnsiGenericString
will clone its underlying string.
impl<'a, S: 'a + ToOwned + ?Sized> Clone for AnsiGenericString<'a, S>
Cloning an AnsiGenericString
will clone its underlying string.
§Examples
use nu_ansi_term::AnsiString;
let plain_string = AnsiString::from("a plain string");
let clone_string = plain_string.clone();
assert_eq!(clone_string, plain_string);
Source§fn clone(&self) -> AnsiGenericString<'a, S>
fn clone(&self) -> AnsiGenericString<'a, S>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, I, S: 'a + ToOwned + ?Sized> From<I> for AnsiGenericString<'a, S>
impl<'a, I, S: 'a + ToOwned + ?Sized> From<I> for AnsiGenericString<'a, S>
Source§fn from(input: I) -> AnsiGenericString<'a, S>
fn from(input: I) -> AnsiGenericString<'a, S>
Converts to this type from the input type.