Struct artichoke_backend::sys::mrb_value
source · [−]#[repr(C)]pub struct mrb_value {
pub value: mrb_value_union,
pub tt: mrb_vtype,
}
Fields
value: mrb_value_union
tt: mrb_vtype
Trait Implementations
sourceimpl Extend<mrb_value> for Array
impl Extend<mrb_value> for Array
sourcefn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = mrb_value>,
fn extend<T>(&mut self, iter: T) where
T: IntoIterator<Item = mrb_value>,
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬 This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬 This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl From<Value> for mrb_value
impl From<Value> for mrb_value
sourcefn from(value: Value) -> Self
fn from(value: Value) -> Self
Extract the inner sys::mrb_value
from this Value
.
sourceimpl From<mrb_value> for NoBlockGiven
impl From<mrb_value> for NoBlockGiven
sourceimpl From<mrb_value> for Value
impl From<mrb_value> for Value
sourcefn from(value: mrb_value) -> Self
fn from(value: mrb_value) -> Self
Construct a new Value
from a sys::mrb_value
.
sourceimpl FromIterator<mrb_value> for Array
impl FromIterator<mrb_value> for Array
sourcefn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = mrb_value>,
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = mrb_value>,
Creates a value from an iterator. Read more
impl Copy for mrb_value
Auto Trait Implementations
impl RefUnwindSafe for mrb_value
impl !Send for mrb_value
impl !Sync for mrb_value
impl Unpin for mrb_value
impl UnwindSafe for mrb_value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more