pub enum PV {
    Ref(*mut NkAtom),
    Sym(SymID),
    Int(isize),
    UInt(usize),
    Real(f32),
    Bool(bool),
    Char(char),
    Nil,
}
Expand description

Primitive values

Variants§

§

Ref(*mut NkAtom)

§

Sym(SymID)

§

Int(isize)

§

UInt(usize)

§

Real(f32)

§

Bool(bool)

§

Char(char)

§

Nil

Implementations§

source§

impl PV

source

pub fn is_zero(&self) -> bool

source

pub fn type_of(&self) -> SymID

source

pub fn str(&self) -> Cow<'_, str>

source

pub fn inner(self) -> Result<PV, Error>

source

pub fn set_inner(&mut self, v: PV) -> Result<PV, Error>

source

pub fn tag(&self, mem: &mut Arena, tag: Source)

source

pub fn bt_type_of(&self) -> Builtin

source

pub fn is_ref(&self) -> bool

source

pub fn rf(&self) -> Option<*mut NkAtom>

source

pub fn set_op(&mut self, op: Builtin)

source

pub fn make_iter(&self) -> Result<Iter, Error>

source

pub fn iter(&self) -> PVIter

source

pub fn iter_src<'b>(&self, nk: &'b Arena, src: Source) -> PVIterSrc<'b>

source

pub fn ref_inner(&self) -> Option<*mut NkAtom>

source

pub fn cons_iter(&self) -> impl Iterator<Item = ConsElem>

source

pub fn with_cell(&self, f: fn(_: PV, _: PV) -> PV) -> Option<PV>

source

pub fn car(&self) -> Option<PV>

source

pub fn cdr(&self) -> Option<PV>

source

pub fn op(&self) -> Option<SymID>

Returns Some(sym) if the PV is an application of sym.

source

pub fn bt_op(&self) -> Option<Builtin>

source

pub fn intr_mut(&self) -> Option<(Builtin, *mut PV)>

source

pub fn quasi_mut(&self) -> Option<QuasiMut>

source

pub fn intr_set_inner(&mut self, p: PV)

source

pub fn intr(&self) -> Option<(Builtin, PV)>

source

pub fn quasi(&self) -> Option<Quasi>

source

pub fn sym(&self) -> Option<SymID>

source

pub fn args(&self) -> impl Iterator<Item = PV>

source

pub fn is_atom(&self) -> bool

source

pub fn is_list(&self) -> bool

source

pub fn to_arglist(&self) -> Result<Vec<SymID>, String>

source

pub fn append(&mut self, new_tail: PV) -> Result<(), Error>

source

pub fn force_int(&self) -> isize

source

pub fn force_uint(&self) -> usize

source

pub fn equalp(&self, other: &PV) -> bool

source

pub fn add(&self, o: &PV) -> Result<PV, Error>

source

pub fn sub(&self, o: &PV) -> Result<PV, Error>

source

pub fn div(&self, o: &PV) -> Result<PV, Error>

source

pub fn mul(&self, o: &PV) -> Result<PV, Error>

source

pub fn add_mut(&mut self, o: &PV) -> Result<(), Error>

source

pub fn sub_mut(&mut self, o: &PV) -> Result<(), Error>

source

pub fn mul_mut(&mut self, o: &PV) -> Result<(), Error>

source

pub fn div_mut(&mut self, o: &PV) -> Result<(), Error>

source

pub fn pow(&self, o: &PV) -> Result<PV, Error>

source

pub fn modulo(&self, o: &PV) -> Result<PV, Error>

source

pub fn lt(&self, o: &PV) -> Result<PV, Error>

source

pub fn gt(&self, o: &PV) -> Result<PV, Error>

source

pub fn lte(&self, o: &PV) -> Result<PV, Error>

source

pub fn gte(&self, o: &PV) -> Result<PV, Error>

source

pub fn deep_clone(&self, mem: &mut Arena) -> PV

Trait Implementations§

source§

impl Clone for PV

source§

fn clone(&self) -> PV

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PV

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PV

source§

fn default() -> PV

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PV

source§

fn deserialize<D>(_d: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for PV

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Fissile for PV

source§

fn type_of() -> NkT

source§

impl From<PV> for bool

source§

fn from(pv: PV) -> bool

Converts to this type from the input type.
source§

impl From<bool> for PV

source§

fn from(value: bool) -> Self

Converts to this type from the input type.
source§

impl<T> FromLisp<Gc<T>> for PVwhere T: Userdata,

Safety

This is safe for Userdata, because of the additional indirection. They are not stored inline by the GC, the GC only has a pointer to it. This means that unlike other PV ref-types the pointer does not move, and it is therefore sufficient to keep an SPV reference-counter to avoid dangling-pointer references.

source§

fn from_lisp(self, _mem: &mut Arena) -> Result<Gc<T>, Error>

source§

impl<T> FromLisp<Promise<T>> for PVwhere T: DeserializeOwned,

source§

fn from_lisp(self, mem: &mut Arena) -> Result<Promise<T>>

source§

impl<T> FromLisp<T> for PVwhere T: TryFrom<PV, Error = Error>,

source§

fn from_lisp(self, _mem: &mut Arena) -> Result<T, Error>

source§

impl Hash for PV

source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IntoIterator for PV

§

type Item = PV

The type of the elements being iterated over.
§

type IntoIter = PVIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
source§

impl PartialEq<PV> for PV

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<PV> for PV

source§

fn partial_cmp(&self, other: &PV) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Serialize for PV

source§

fn serialize<S>(&self, _d: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Traceable for PV

source§

fn trace(&self, gray: &mut Vec<*mut NkAtom>)

source§

fn update_ptrs(&mut self, reloc: &PtrMap)

source§

impl<'a> TryFrom<PV> for &'a str

NOTE: This is safe because while the String is shifted around by the GC mark-sweep phase, the actual allocated string contents are not. XXX: This definition also means that strings must be immutable.

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<&'a str, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ()

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<(), Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for Ignore

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(_v: PV) -> Result<Ignore, Self::Error>

Performs the conversion.
source§

impl<'a, T: Userdata> TryFrom<PV> for ObjRef<&'a T>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<&'a T>, Self::Error>

Performs the conversion.
source§

impl<'a, T: Userdata> TryFrom<PV> for ObjRef<&'a mut T>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<&'a mut T>, Self::Error>

Performs the conversion.
source§

impl<T: Userdata> TryFrom<PV> for ObjRef<*const T>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<*const T>, Self::Error>

Performs the conversion.
source§

impl<T: Userdata> TryFrom<PV> for ObjRef<*mut T>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<*mut T>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<char>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<char>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<f32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<f32>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<i128>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<i128>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<i16>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<i16>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<i32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<i32>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<i64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<i64>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<i8>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<i8>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<isize>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<isize>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<u128>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<u128>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<u16>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<u16>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<u32>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<u32>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<u64>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<u64>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<u8>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<u8>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for ObjRef<usize>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<ObjRef<usize>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for String

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for SymID

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: PV) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl<T> TryFrom<PV> for Vec<T>where T: TryFrom<PV, Error = Error>,

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<Vec<T>, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for char

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<char, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for f32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<f32, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for f64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(value: PV) -> Result<Self, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for i128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<i128, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for i16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<i16, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for i32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<i32, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for i64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<i64, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for i8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<i8, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for isize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<isize, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for u128

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<u128, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for u16

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<u16, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for u32

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<u32, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for u64

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<u64, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for u8

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<u8, Self::Error>

Performs the conversion.
source§

impl TryFrom<PV> for usize

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(v: PV) -> Result<usize, Self::Error>

Performs the conversion.
source§

impl Copy for PV

source§

impl Eq for PV

Auto Trait Implementations§

§

impl RefUnwindSafe for PV

§

impl !Send for PV

§

impl !Sync for PV

§

impl Unpin for PV

§

impl UnwindSafe for PV

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<D> OwoColorize for D

source§

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,

Set the background color generically. Read more
source§

fn black<'a>(&'a self) -> FgColorDisplay<'a, Black, Self>

Change the foreground color to black
source§

fn on_black<'a>(&'a self) -> BgColorDisplay<'a, Black, Self>

Change the background color to black
source§

fn red<'a>(&'a self) -> FgColorDisplay<'a, Red, Self>

Change the foreground color to red
source§

fn on_red<'a>(&'a self) -> BgColorDisplay<'a, Red, Self>

Change the background color to red
source§

fn green<'a>(&'a self) -> FgColorDisplay<'a, Green, Self>

Change the foreground color to green
source§

fn on_green<'a>(&'a self) -> BgColorDisplay<'a, Green, Self>

Change the background color to green
source§

fn yellow<'a>(&'a self) -> FgColorDisplay<'a, Yellow, Self>

Change the foreground color to yellow
source§

fn on_yellow<'a>(&'a self) -> BgColorDisplay<'a, Yellow, Self>

Change the background color to yellow
source§

fn blue<'a>(&'a self) -> FgColorDisplay<'a, Blue, Self>

Change the foreground color to blue
source§

fn on_blue<'a>(&'a self) -> BgColorDisplay<'a, Blue, Self>

Change the background color to blue
source§

fn magenta<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to magenta
source§

fn on_magenta<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to magenta
source§

fn purple<'a>(&'a self) -> FgColorDisplay<'a, Magenta, Self>

Change the foreground color to purple
source§

fn on_purple<'a>(&'a self) -> BgColorDisplay<'a, Magenta, Self>

Change the background color to purple
source§

fn cyan<'a>(&'a self) -> FgColorDisplay<'a, Cyan, Self>

Change the foreground color to cyan
source§

fn on_cyan<'a>(&'a self) -> BgColorDisplay<'a, Cyan, Self>

Change the background color to cyan
source§

fn white<'a>(&'a self) -> FgColorDisplay<'a, White, Self>

Change the foreground color to white
source§

fn on_white<'a>(&'a self) -> BgColorDisplay<'a, White, Self>

Change the background color to white
source§

fn default_color<'a>(&'a self) -> FgColorDisplay<'a, Default, Self>

Change the foreground color to the terminal default
source§

fn on_default_color<'a>(&'a self) -> BgColorDisplay<'a, Default, Self>

Change the background color to the terminal default
source§

fn bright_black<'a>(&'a self) -> FgColorDisplay<'a, BrightBlack, Self>

Change the foreground color to bright black
source§

fn on_bright_black<'a>(&'a self) -> BgColorDisplay<'a, BrightBlack, Self>

Change the background color to bright black
source§

fn bright_red<'a>(&'a self) -> FgColorDisplay<'a, BrightRed, Self>

Change the foreground color to bright red
source§

fn on_bright_red<'a>(&'a self) -> BgColorDisplay<'a, BrightRed, Self>

Change the background color to bright red
source§

fn bright_green<'a>(&'a self) -> FgColorDisplay<'a, BrightGreen, Self>

Change the foreground color to bright green
source§

fn on_bright_green<'a>(&'a self) -> BgColorDisplay<'a, BrightGreen, Self>

Change the background color to bright green
source§

fn bright_yellow<'a>(&'a self) -> FgColorDisplay<'a, BrightYellow, Self>

Change the foreground color to bright yellow
source§

fn on_bright_yellow<'a>(&'a self) -> BgColorDisplay<'a, BrightYellow, Self>

Change the background color to bright yellow
source§

fn bright_blue<'a>(&'a self) -> FgColorDisplay<'a, BrightBlue, Self>

Change the foreground color to bright blue
source§

fn on_bright_blue<'a>(&'a self) -> BgColorDisplay<'a, BrightBlue, Self>

Change the background color to bright blue
source§

fn bright_magenta<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright magenta
source§

fn on_bright_magenta<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright magenta
source§

fn bright_purple<'a>(&'a self) -> FgColorDisplay<'a, BrightMagenta, Self>

Change the foreground color to bright purple
source§

fn on_bright_purple<'a>(&'a self) -> BgColorDisplay<'a, BrightMagenta, Self>

Change the background color to bright purple
source§

fn bright_cyan<'a>(&'a self) -> FgColorDisplay<'a, BrightCyan, Self>

Change the foreground color to bright cyan
source§

fn on_bright_cyan<'a>(&'a self) -> BgColorDisplay<'a, BrightCyan, Self>

Change the background color to bright cyan
source§

fn bright_white<'a>(&'a self) -> FgColorDisplay<'a, BrightWhite, Self>

Change the foreground color to bright white
source§

fn on_bright_white<'a>(&'a self) -> BgColorDisplay<'a, BrightWhite, Self>

Change the background color to bright white
source§

fn bold<'a>(&'a self) -> BoldDisplay<'a, Self>

Make the text bold
source§

fn dimmed<'a>(&'a self) -> DimDisplay<'a, Self>

Make the text dim
source§

fn italic<'a>(&'a self) -> ItalicDisplay<'a, Self>

Make the text italicized
source§

fn underline<'a>(&'a self) -> UnderlineDisplay<'a, Self>

Make the text italicized
Make the text blink
Make the text blink (but fast!)
source§

fn reversed<'a>(&'a self) -> ReversedDisplay<'a, Self>

Swap the foreground and background colors
source§

fn hidden<'a>(&'a self) -> HiddenDisplay<'a, Self>

Hide the text
source§

fn strikethrough<'a>(&'a self) -> StrikeThroughDisplay<'a, Self>

Cross out the text
source§

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 more
source§

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 more
source§

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>

Set the background color to a specific RGB value.
source§

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>

Sets the background color to an RGB value.
source§

fn style(&self, style: Style) -> Styled<&Self>

Apply a runtime-determined style
source§

fn if_supports_color<'a, Out, ApplyFn>( &'a self, stream: Stream, apply: ApplyFn ) -> SupportsColorsDisplay<'a, Self, Out, ApplyFn>where ApplyFn: Fn(&'a Self) -> Out,

Apply a given transformation function to all formatters if the given stream supports at least basic ANSI colors, allowing you to conditionally apply given styles/colors. Read more
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,