Skip to main content

View

Enum View 

Source
pub enum View<'a, I: Instance<'a>> {
    Null,
    Bool(bool),
    Number(Number),
    String(&'a str),
    Array(I::Array),
    Object(I::Object),
}
Expand description

What an instance is.

Variants§

§

Null

§

Bool(bool)

§

Number(Number)

§

String(&'a str)

§

Array(I::Array)

§

Object(I::Object)

Auto Trait Implementations§

§

impl<'a, I> Freeze for View<'a, I>
where <I as Instance<'a>>::Array: Freeze, <I as Instance<'a>>::Object: Freeze,

§

impl<'a, I> RefUnwindSafe for View<'a, I>
where <I as Instance<'a>>::Array: RefUnwindSafe, <I as Instance<'a>>::Object: RefUnwindSafe,

§

impl<'a, I> Send for View<'a, I>
where <I as Instance<'a>>::Array: Send, <I as Instance<'a>>::Object: Send,

§

impl<'a, I> Sync for View<'a, I>
where <I as Instance<'a>>::Array: Sync, <I as Instance<'a>>::Object: Sync,

§

impl<'a, I> Unpin for View<'a, I>
where <I as Instance<'a>>::Array: Unpin, <I as Instance<'a>>::Object: Unpin,

§

impl<'a, I> UnsafeUnpin for View<'a, I>
where <I as Instance<'a>>::Array: UnsafeUnpin, <I as Instance<'a>>::Object: UnsafeUnpin,

§

impl<'a, I> UnwindSafe for View<'a, I>
where <I as Instance<'a>>::Array: UnwindSafe, <I as Instance<'a>>::Object: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.