[][src]Struct runestick::Struct

pub struct Struct { /* fields omitted */ }

An object with a well-defined type.

Implementations

impl Struct[src]

pub fn rtti(&self) -> &Arc<Rtti>[src]

Access runtime type information.

pub fn data(&self) -> &Object[src]

Access underlying data.

pub fn data_mut(&mut self) -> &mut Object[src]

Access underlying data mutably.

pub fn type_info(&self) -> TypeInfo[src]

Get type info for the typed object.

pub fn type_hash(&self) -> Hash[src]

Get the type hash of the object.

pub fn get<Q: ?Sized>(&self, k: &Q) -> Option<&Value> where
    String: Borrow<Q>,
    Q: Hash + Eq
[src]

Get the given key in the object.

pub fn get_mut<Q: ?Sized>(&mut self, k: &Q) -> Option<&mut Value> where
    String: Borrow<Q>,
    Q: Hash + Eq
[src]

Get the given mutable value by key in the object.

Trait Implementations

impl Debug for Struct[src]

impl From<Struct> for Value[src]

impl ToValue for Struct[src]

impl TypeOf for Struct[src]

Auto Trait Implementations

impl !RefUnwindSafe for Struct

impl !Send for Struct

impl !Sync for Struct

impl Unpin for Struct

impl !UnwindSafe for Struct

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.