Skip to main content

Chisel

Trait Chisel 

Source
pub trait Chisel: Default {
    type Value;

    // Required methods
    fn end() -> Self;
    fn is_end(&self) -> bool;
    fn value(self) -> Option<Self::Value>;
    fn value_ref(&self) -> Option<&Self::Value>;
}

Required Associated Types§

Required Methods§

Source

fn end() -> Self

Source

fn is_end(&self) -> bool

Source

fn value(self) -> Option<Self::Value>

Source

fn value_ref(&self) -> Option<&Self::Value>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Chisel for Option<T>

Source§

type Value = T

Source§

fn end() -> Option<T>

Source§

fn is_end(&self) -> bool

Source§

fn value(self) -> Option<T>

Source§

fn value_ref(&self) -> Option<&T>

Implementors§