Enum ContextValue

enum ContextValue

A piece of error information

Variants

None

ContextKind is self-sufficient, no additional information needed

Bool(bool)

A single value

String(String)

A single value

Strings(Vec<String>)

Many values

StyledStr(crate::builder::StyledStr)

A single value

StyledStrs(Vec<crate::builder::StyledStr>)

many value

Number(isize)

A single value

Implementations

impl Clone for ContextValue

fn clone(self: &Self) -> ContextValue

impl Debug for ContextValue

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

impl Display for ContextValue

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

impl Eq for ContextValue

impl Freeze for ContextValue

impl PartialEq for ContextValue

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

impl RefUnwindSafe for ContextValue

impl Send for ContextValue

impl StructuralPartialEq for ContextValue

impl Sync for ContextValue

impl Unpin for ContextValue

impl UnsafeUnpin for ContextValue

impl UnwindSafe for ContextValue

impl<T> Any for ContextValue

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ContextValue

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ContextValue

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

impl<T> CloneToUninit for ContextValue

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for ContextValue

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ContextValue

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T> ToString for ContextValue

fn to_string(self: &Self) -> String

impl<T, U> Into for ContextValue

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for ContextValue

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

impl<T, U> TryInto for ContextValue

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