[−][src]Struct runestick::Struct
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]
String: Borrow<Q>,
Q: Hash + Eq,
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]
String: Borrow<Q>,
Q: Hash + Eq,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,