Trait prefixmap::deref::Deref

source ·
pub trait Deref {
    // Required method
    fn deref(
        &self,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Self, DerefError>
       where Self: Sized;

    // Provided methods
    fn deref_opt<T>(
        maybe: &Option<T>,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Option<T>, DerefError>
       where T: Deref { ... }
    fn deref_box<T>(
        bt: &Box<T>,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Box<T>, DerefError>
       where T: Deref { ... }
    fn deref_opt_box<T>(
        maybe: &Option<Box<T>>,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Option<Box<T>>, DerefError>
       where T: Deref { ... }
    fn deref_vec<T>(
        ts: &Vec<T>,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Vec<T>, DerefError>
       where T: Deref { ... }
    fn deref_opt_vec<T>(
        maybe_ts: &Option<Vec<T>>,
        base: &Option<IriS>,
        prefixmap: &Option<PrefixMap>
    ) -> Result<Option<Vec<T>>, DerefError>
       where T: Deref { ... }
}

Required Methods§

source

fn deref( &self, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Self, DerefError>
where Self: Sized,

Provided Methods§

source

fn deref_opt<T>( maybe: &Option<T>, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Option<T>, DerefError>
where T: Deref,

source

fn deref_box<T>( bt: &Box<T>, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Box<T>, DerefError>
where T: Deref,

source

fn deref_opt_box<T>( maybe: &Option<Box<T>>, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Option<Box<T>>, DerefError>
where T: Deref,

source

fn deref_vec<T>( ts: &Vec<T>, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Vec<T>, DerefError>
where T: Deref,

source

fn deref_opt_vec<T>( maybe_ts: &Option<Vec<T>>, base: &Option<IriS>, prefixmap: &Option<PrefixMap> ) -> Result<Option<Vec<T>>, DerefError>
where T: Deref,

Object Safety§

This trait is not object safe.

Implementors§