[][src]Struct gluon_vm::internal::ValuePrinter

pub struct ValuePrinter<'a> {
    pub typ: &'a ArcType,
    pub env: &'a dyn TypeEnv<Type = ArcType>,
    pub value: Variants<'a>,
    pub max_level: i32,
    pub width: usize,
    pub debug_level: &'a DebugLevel,
}

Fields

typ: &'a ArcTypeenv: &'a dyn TypeEnv<Type = ArcType>value: Variants<'a>max_level: i32width: usizedebug_level: &'a DebugLevel

Implementations

impl<'t> ValuePrinter<'t>[src]

pub fn new(
    env: &'t dyn TypeEnv<Type = ArcType>,
    typ: &'t ArcType,
    value: Variants<'t>,
    debug_level: &'t DebugLevel
) -> ValuePrinter<'t>
[src]

pub fn max_level(&mut self, max_level: i32) -> &mut ValuePrinter<'t>[src]

pub fn width(&mut self, width: usize) -> &mut ValuePrinter<'t>[src]

Trait Implementations

impl<'a> Display for ValuePrinter<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ValuePrinter<'a>

impl<'a> !Send for ValuePrinter<'a>

impl<'a> !Sync for ValuePrinter<'a>

impl<'a> Unpin for ValuePrinter<'a>

impl<'a> !UnwindSafe for ValuePrinter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'_, T> Captures<'_> for T[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<D, T> FromPtr<D> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 
[src]

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.