[][src]Trait restor::Unit

pub trait Unit {
    fn one<'a>(&'a self) -> Result<Ref<'a, dyn Any>, ErrorDesc>;
fn one_mut<'a>(&'a self) -> Result<RefMut<'a, dyn Any>, ErrorDesc>;
fn ind<'a>(&'a self, ind: usize) -> Result<Ref<'a, dyn Any>, ErrorDesc>;
fn ind_mut<'a>(
        &'a self,
        ind: usize
    ) -> Result<RefMut<'a, dyn Any>, ErrorDesc>;
fn extract(&self) -> Result<Box<dyn Any>, ErrorDesc>;
fn extract_ind(&self, ind: usize) -> Result<Box<dyn Any>, ErrorDesc>;
fn extract_many(&self) -> Result<Box<dyn Any>, ErrorDesc>;
fn insert_any(&self, new: Box<dyn Any>) -> Option<(Box<dyn Any>, ErrorDesc)>;
fn is_guarded(&self) -> bool;
fn to_guarded(&self) -> Option<&()>;
fn id(&self) -> TypeId; }

Required methods

fn one<'a>(&'a self) -> Result<Ref<'a, dyn Any>, ErrorDesc>

fn one_mut<'a>(&'a self) -> Result<RefMut<'a, dyn Any>, ErrorDesc>

fn ind<'a>(&'a self, ind: usize) -> Result<Ref<'a, dyn Any>, ErrorDesc>

fn ind_mut<'a>(&'a self, ind: usize) -> Result<RefMut<'a, dyn Any>, ErrorDesc>

fn extract(&self) -> Result<Box<dyn Any>, ErrorDesc>

fn extract_ind(&self, ind: usize) -> Result<Box<dyn Any>, ErrorDesc>

fn extract_many(&self) -> Result<Box<dyn Any>, ErrorDesc>

fn insert_any(&self, new: Box<dyn Any>) -> Option<(Box<dyn Any>, ErrorDesc)>

fn is_guarded(&self) -> bool

fn to_guarded(&self) -> Option<&()>

fn id(&self) -> TypeId

Loading content...

Trait Implementations

impl PartialEq<dyn Unit + 'static> for dyn Unit[src]

#[must_use]
default fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Debug for dyn Unit[src]

Implementors

Loading content...