pub struct KeySerializer;Trait Implementations§
Source§impl Serializer for KeySerializer
impl Serializer for KeySerializer
Source§type Ok = SmallString<[u8; 16]>
type Ok = SmallString<[u8; 16]>
The output type produced by this
Serializer during successful
serialization. Most serializers that produce text or binary output
should set Ok = () and serialize into an io::Write or buffer
contained within the Serializer instance. Serializers that build
in-memory data structures may be simplified by using Ok to propagate
the data structure around.Source§type Error = SerializeError
type Error = SerializeError
The error type when some error occurs during serialization.
Source§type SerializeSeq = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeSeq = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_seq for serializing the content of the
sequence.Source§type SerializeTuple = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeTuple = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_tuple for serializing the content of
the tuple.Source§type SerializeTupleStruct = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeTupleStruct = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_tuple_struct for serializing the
content of the tuple struct.Source§type SerializeTupleVariant = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeTupleVariant = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_tuple_variant for serializing the
content of the tuple variant.Source§type SerializeMap = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeMap = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_map for serializing the content of the
map.Source§type SerializeStruct = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeStruct = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_struct for serializing the content of
the struct.Source§type SerializeStructVariant = Impossible<SmallString<[u8; 16]>, SerializeError>
type SerializeStructVariant = Impossible<SmallString<[u8; 16]>, SerializeError>
Type returned from
serialize_struct_variant for serializing the
content of the struct variant.Source§fn serialize_unit_variant(
self,
_name: &'static str,
_variant_index: u32,
variant: &'static str,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_unit_variant( self, _name: &'static str, _variant_index: u32, variant: &'static str, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Source§fn serialize_newtype_struct<T>(
self,
_name: &'static str,
value: &T,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_newtype_struct<T>( self, _name: &'static str, value: &T, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a newtype struct like
struct Millimeters(u8). Read moreSource§fn serialize_bool(
self,
_value: bool,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_bool( self, _value: bool, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
bool value. Read moreSource§fn serialize_i8(
self,
value: i8,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_i8( self, value: i8, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
i8 value. Read moreSource§fn serialize_i16(
self,
value: i16,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_i16( self, value: i16, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
i16 value. Read moreSource§fn serialize_i32(
self,
value: i32,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_i32( self, value: i32, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
i32 value. Read moreSource§fn serialize_i64(
self,
value: i64,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_i64( self, value: i64, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
i64 value. Read moreSource§fn serialize_u8(
self,
value: u8,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_u8( self, value: u8, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
u8 value. Read moreSource§fn serialize_u16(
self,
value: u16,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_u16( self, value: u16, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
u16 value. Read moreSource§fn serialize_u32(
self,
value: u32,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_u32( self, value: u32, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
u32 value. Read moreSource§fn serialize_u64(
self,
value: u64,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_u64( self, value: u64, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
u64 value. Read moreSource§fn serialize_f32(
self,
_value: f32,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_f32( self, _value: f32, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
f32 value. Read moreSource§fn serialize_f64(
self,
_value: f64,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_f64( self, _value: f64, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize an
f64 value. Read moreSource§fn serialize_char(
self,
value: char,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_char( self, value: char, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a character. Read more
Source§fn serialize_str(
self,
value: &str,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_str( self, value: &str, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
&str. Read moreSource§fn serialize_bytes(
self,
_value: &[u8],
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_bytes( self, _value: &[u8], ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a chunk of raw byte data. Read more
Source§fn serialize_unit(
self,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_unit( self, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a
() value. Read moreSource§fn serialize_unit_struct(
self,
_name: &'static str,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_unit_struct( self, _name: &'static str, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Source§fn serialize_newtype_variant<T>(
self,
_name: &'static str,
_variant_index: u32,
_variant: &'static str,
_value: &T,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_newtype_variant<T>( self, _name: &'static str, _variant_index: u32, _variant: &'static str, _value: &T, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Source§fn serialize_none(
self,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_none( self, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Source§fn serialize_some<T>(
self,
_value: &T,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn serialize_some<T>( self, _value: &T, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Source§fn serialize_seq(
self,
_len: Option<usize>,
) -> Result<<KeySerializer as Serializer>::SerializeSeq, <KeySerializer as Serializer>::Error>
fn serialize_seq( self, _len: Option<usize>, ) -> Result<<KeySerializer as Serializer>::SerializeSeq, <KeySerializer as Serializer>::Error>
Begin to serialize a variably sized sequence. This call must be
followed by zero or more calls to
serialize_element, then a call to
end. Read moreSource§fn serialize_tuple(
self,
_len: usize,
) -> Result<<KeySerializer as Serializer>::SerializeTuple, <KeySerializer as Serializer>::Error>
fn serialize_tuple( self, _len: usize, ) -> Result<<KeySerializer as Serializer>::SerializeTuple, <KeySerializer as Serializer>::Error>
Begin to serialize a statically sized sequence whose length will be
known at deserialization time without looking at the serialized data.
This call must be followed by zero or more calls to
serialize_element,
then a call to end. Read moreSource§fn serialize_tuple_struct(
self,
_name: &'static str,
_len: usize,
) -> Result<<KeySerializer as Serializer>::SerializeTupleStruct, <KeySerializer as Serializer>::Error>
fn serialize_tuple_struct( self, _name: &'static str, _len: usize, ) -> Result<<KeySerializer as Serializer>::SerializeTupleStruct, <KeySerializer as Serializer>::Error>
Begin to serialize a tuple struct like
struct Rgb(u8, u8, u8). This
call must be followed by zero or more calls to serialize_field, then a
call to end. Read moreSource§fn serialize_tuple_variant(
self,
_name: &'static str,
_variant_index: u32,
_variant: &'static str,
_len: usize,
) -> Result<<KeySerializer as Serializer>::SerializeTupleVariant, <KeySerializer as Serializer>::Error>
fn serialize_tuple_variant( self, _name: &'static str, _variant_index: u32, _variant: &'static str, _len: usize, ) -> Result<<KeySerializer as Serializer>::SerializeTupleVariant, <KeySerializer as Serializer>::Error>
Begin to serialize a tuple variant like
E::T in enum E { T(u8, u8) }. This call must be followed by zero or more calls to
serialize_field, then a call to end. Read moreSource§fn serialize_map(
self,
_len: Option<usize>,
) -> Result<<KeySerializer as Serializer>::SerializeMap, <KeySerializer as Serializer>::Error>
fn serialize_map( self, _len: Option<usize>, ) -> Result<<KeySerializer as Serializer>::SerializeMap, <KeySerializer as Serializer>::Error>
Begin to serialize a map. This call must be followed by zero or more
calls to
serialize_key and serialize_value, then a call to end. Read moreSource§fn serialize_struct(
self,
_name: &'static str,
_len: usize,
) -> Result<<KeySerializer as Serializer>::SerializeStruct, <KeySerializer as Serializer>::Error>
fn serialize_struct( self, _name: &'static str, _len: usize, ) -> Result<<KeySerializer as Serializer>::SerializeStruct, <KeySerializer as Serializer>::Error>
Begin to serialize a struct like
struct Rgb { r: u8, g: u8, b: u8 }.
This call must be followed by zero or more calls to serialize_field,
then a call to end. Read moreSource§fn serialize_struct_variant(
self,
_name: &'static str,
_variant_index: u32,
_variant: &'static str,
_len: usize,
) -> Result<<KeySerializer as Serializer>::SerializeStructVariant, <KeySerializer as Serializer>::Error>
fn serialize_struct_variant( self, _name: &'static str, _variant_index: u32, _variant: &'static str, _len: usize, ) -> Result<<KeySerializer as Serializer>::SerializeStructVariant, <KeySerializer as Serializer>::Error>
Begin to serialize a struct variant like
E::S in enum E { S { r: u8, g: u8, b: u8 } }. This call must be followed by zero or more calls to
serialize_field, then a call to end. Read moreSource§fn collect_str<T>(
self,
value: &T,
) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
fn collect_str<T>( self, value: &T, ) -> Result<<KeySerializer as Serializer>::Ok, <KeySerializer as Serializer>::Error>
Serialize a string produced by an implementation of
Display. Read moreSource§fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error>
fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error>
Serialize an
i128 value. Read moreSource§fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error>
fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error>
Serialize a
u128 value. Read moreSource§fn collect_seq<I>(self, iter: I) -> Result<Self::Ok, Self::Error>
fn collect_seq<I>(self, iter: I) -> Result<Self::Ok, Self::Error>
Collect an iterator as a sequence. Read more
Source§fn collect_map<K, V, I>(self, iter: I) -> Result<Self::Ok, Self::Error>
fn collect_map<K, V, I>(self, iter: I) -> Result<Self::Ok, Self::Error>
Collect an iterator as a map. Read more
Source§fn is_human_readable(&self) -> bool
fn is_human_readable(&self) -> bool
Determine whether
Serialize implementations should serialize in
human-readable form. Read moreAuto Trait Implementations§
impl Freeze for KeySerializer
impl RefUnwindSafe for KeySerializer
impl Send for KeySerializer
impl Sync for KeySerializer
impl Unpin for KeySerializer
impl UnsafeUnpin for KeySerializer
impl UnwindSafe for KeySerializer
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> JsonAt for T
impl<T> JsonAt for T
Source§fn json_at<F>(
self,
location: impl Into<Vec<JsonBacktraceFrame<F>>>,
) -> JsonLocated<T, F>
fn json_at<F>( self, location: impl Into<Vec<JsonBacktraceFrame<F>>>, ) -> JsonLocated<T, F>
Pairs
self with location.Source§impl<D> OwoColorize for D
impl<D> OwoColorize for D
Source§fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
fn fg<C>(&self) -> FgColorDisplay<'_, C, Self>where
C: Color,
Set the foreground color generically Read more
Source§fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
fn bg<C>(&self) -> BgColorDisplay<'_, C, Self>where
C: Color,
Set the background color generically. Read more
Source§fn black(&self) -> FgColorDisplay<'_, Black, Self>
fn black(&self) -> FgColorDisplay<'_, Black, Self>
Change the foreground color to black
Source§fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
fn on_black(&self) -> BgColorDisplay<'_, Black, Self>
Change the background color to black
Source§fn red(&self) -> FgColorDisplay<'_, Red, Self>
fn red(&self) -> FgColorDisplay<'_, Red, Self>
Change the foreground color to red
Source§fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
fn on_red(&self) -> BgColorDisplay<'_, Red, Self>
Change the background color to red
Source§fn green(&self) -> FgColorDisplay<'_, Green, Self>
fn green(&self) -> FgColorDisplay<'_, Green, Self>
Change the foreground color to green
Source§fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
fn on_green(&self) -> BgColorDisplay<'_, Green, Self>
Change the background color to green
Source§fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
fn yellow(&self) -> FgColorDisplay<'_, Yellow, Self>
Change the foreground color to yellow
Source§fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
fn on_yellow(&self) -> BgColorDisplay<'_, Yellow, Self>
Change the background color to yellow
Source§fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
fn blue(&self) -> FgColorDisplay<'_, Blue, Self>
Change the foreground color to blue
Source§fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
fn on_blue(&self) -> BgColorDisplay<'_, Blue, Self>
Change the background color to blue
Source§fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
fn magenta(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to magenta
Source§fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_magenta(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to magenta
Source§fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
fn purple(&self) -> FgColorDisplay<'_, Magenta, Self>
Change the foreground color to purple
Source§fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
fn on_purple(&self) -> BgColorDisplay<'_, Magenta, Self>
Change the background color to purple
Source§fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
fn cyan(&self) -> FgColorDisplay<'_, Cyan, Self>
Change the foreground color to cyan
Source§fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
fn on_cyan(&self) -> BgColorDisplay<'_, Cyan, Self>
Change the background color to cyan
Source§fn white(&self) -> FgColorDisplay<'_, White, Self>
fn white(&self) -> FgColorDisplay<'_, White, Self>
Change the foreground color to white
Source§fn on_white(&self) -> BgColorDisplay<'_, White, Self>
fn on_white(&self) -> BgColorDisplay<'_, White, Self>
Change the background color to white
Source§fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
fn default_color(&self) -> FgColorDisplay<'_, Default, Self>
Change the foreground color to the terminal default
Source§fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
fn on_default_color(&self) -> BgColorDisplay<'_, Default, Self>
Change the background color to the terminal default
Source§fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
fn bright_black(&self) -> FgColorDisplay<'_, BrightBlack, Self>
Change the foreground color to bright black
Source§fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
fn on_bright_black(&self) -> BgColorDisplay<'_, BrightBlack, Self>
Change the background color to bright black
Source§fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
fn bright_red(&self) -> FgColorDisplay<'_, BrightRed, Self>
Change the foreground color to bright red
Source§fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
fn on_bright_red(&self) -> BgColorDisplay<'_, BrightRed, Self>
Change the background color to bright red
Source§fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
fn bright_green(&self) -> FgColorDisplay<'_, BrightGreen, Self>
Change the foreground color to bright green
Source§fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
fn on_bright_green(&self) -> BgColorDisplay<'_, BrightGreen, Self>
Change the background color to bright green
Source§fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
fn bright_yellow(&self) -> FgColorDisplay<'_, BrightYellow, Self>
Change the foreground color to bright yellow
Source§fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
fn on_bright_yellow(&self) -> BgColorDisplay<'_, BrightYellow, Self>
Change the background color to bright yellow
Source§fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
fn bright_blue(&self) -> FgColorDisplay<'_, BrightBlue, Self>
Change the foreground color to bright blue
Source§fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
fn on_bright_blue(&self) -> BgColorDisplay<'_, BrightBlue, Self>
Change the background color to bright blue
Source§fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_magenta(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright magenta
Source§fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_magenta(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright magenta
Source§fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
fn bright_purple(&self) -> FgColorDisplay<'_, BrightMagenta, Self>
Change the foreground color to bright purple
Source§fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
fn on_bright_purple(&self) -> BgColorDisplay<'_, BrightMagenta, Self>
Change the background color to bright purple
Source§fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
fn bright_cyan(&self) -> FgColorDisplay<'_, BrightCyan, Self>
Change the foreground color to bright cyan
Source§fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
fn on_bright_cyan(&self) -> BgColorDisplay<'_, BrightCyan, Self>
Change the background color to bright cyan
Source§fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
fn bright_white(&self) -> FgColorDisplay<'_, BrightWhite, Self>
Change the foreground color to bright white
Source§fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
fn on_bright_white(&self) -> BgColorDisplay<'_, BrightWhite, Self>
Change the background color to bright white
Source§fn bold(&self) -> BoldDisplay<'_, Self>
fn bold(&self) -> BoldDisplay<'_, Self>
Make the text bold
Source§fn dimmed(&self) -> DimDisplay<'_, Self>
fn dimmed(&self) -> DimDisplay<'_, Self>
Make the text dim
Source§fn italic(&self) -> ItalicDisplay<'_, Self>
fn italic(&self) -> ItalicDisplay<'_, Self>
Make the text italicized
Source§fn underline(&self) -> UnderlineDisplay<'_, Self>
fn underline(&self) -> UnderlineDisplay<'_, Self>
Make the text underlined
Source§fn blink(&self) -> BlinkDisplay<'_, Self>
fn blink(&self) -> BlinkDisplay<'_, Self>
Make the text blink
Source§fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
fn blink_fast(&self) -> BlinkFastDisplay<'_, Self>
Make the text blink (but fast!)
Source§fn reversed(&self) -> ReversedDisplay<'_, Self>
fn reversed(&self) -> ReversedDisplay<'_, Self>
Swap the foreground and background colors
Hide the text
Source§fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
fn strikethrough(&self) -> StrikeThroughDisplay<'_, Self>
Cross out the text
Source§fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn color<Color>(&self, color: Color) -> FgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the foreground color at runtime. Only use if you do not know which color will be used at
compile-time. If the color is constant, use either
OwoColorize::fg or
a color-specific method, such as OwoColorize::green, Read moreSource§fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
fn on_color<Color>(&self, color: Color) -> BgDynColorDisplay<'_, Color, Self>where
Color: DynColor,
Set the background color at runtime. Only use if you do not know what color to use at
compile-time. If the color is constant, use either
OwoColorize::bg or
a color-specific method, such as OwoColorize::on_yellow, Read moreSource§fn fg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn fg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> FgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the foreground color to a specific RGB value.
Source§fn bg_rgb<const R: u8, const G: u8, const B: u8>(
&self,
) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
fn bg_rgb<const R: u8, const G: u8, const B: u8>( &self, ) -> BgColorDisplay<'_, CustomColor<R, G, B>, Self>
Set the background color to a specific RGB value.
Source§fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
fn truecolor(&self, r: u8, g: u8, b: u8) -> FgDynColorDisplay<'_, Rgb, Self>
Sets the foreground color to an RGB value.
Source§fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
fn on_truecolor(&self, r: u8, g: u8, b: u8) -> BgDynColorDisplay<'_, Rgb, Self>
Sets the background color to an RGB value.