Struct ruby_marshal::UserDefinedValue
source · pub struct UserDefinedValue { /* private fields */ }
Expand description
A User Defined value
Implementations§
source§impl UserDefinedValue
impl UserDefinedValue
sourcepub fn name(&self) -> TypedValueHandle<SymbolValue>
pub fn name(&self) -> TypedValueHandle<SymbolValue>
Get the name.
sourcepub fn instance_variables(
&self,
) -> Option<&[(TypedValueHandle<SymbolValue>, ValueHandle)]>
pub fn instance_variables( &self, ) -> Option<&[(TypedValueHandle<SymbolValue>, ValueHandle)]>
Get the instance variables
Trait Implementations§
source§impl Debug for UserDefinedValue
impl Debug for UserDefinedValue
source§impl From<UserDefinedValue> for Value
impl From<UserDefinedValue> for Value
source§fn from(value: UserDefinedValue) -> Self
fn from(value: UserDefinedValue) -> Self
Converts to this type from the input type.
source§impl<'a> FromValue<'a> for &'a UserDefinedValue
impl<'a> FromValue<'a> for &'a UserDefinedValue
source§fn from_value(
ctx: &FromValueContext<'a>,
value: &'a Value,
) -> Result<Self, FromValueError>
fn from_value( ctx: &FromValueContext<'a>, value: &'a Value, ) -> Result<Self, FromValueError>
Create this type from the given value from the
ValueArena
. Read moreAuto Trait Implementations§
impl Freeze for UserDefinedValue
impl RefUnwindSafe for UserDefinedValue
impl Send for UserDefinedValue
impl Sync for UserDefinedValue
impl Unpin for UserDefinedValue
impl UnwindSafe for UserDefinedValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more