[][src]Struct artichoke_backend::block::Block

pub struct Block(_);

Implementations

impl Block[src]

#[must_use]pub fn new(block: mrb_value) -> Option<Self>[src]

Construct a Block from a Ruby value.

#[must_use]pub const unsafe fn new_unchecked(block: mrb_value) -> Self[src]

Construct a Block from a Ruby value.

Safety

The block must not be nil.

#[must_use]pub const fn inner(&self) -> mrb_value[src]

pub fn yield_arg(
    &self,
    interp: &mut Artichoke,
    arg: &Value
) -> Result<Value, Error>
[src]

Trait Implementations

impl Clone for Block[src]

impl Copy for Block[src]

impl Debug for Block[src]

impl Default for Block[src]

impl TryFrom<mrb_value> for Block[src]

type Error = NoBlockGiven

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Block[src]

impl !Send for Block[src]

impl !Sync for Block[src]

impl Unpin for Block[src]

impl UnwindSafe for Block[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]