AnyValueTrait

Trait AnyValueTrait 

Source
pub trait AnyValueTrait: Send + Sync {
    // Required methods
    fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>;
    fn is(&self, type_id: TypeId) -> bool;
    fn ptr_id(&self) -> usize;
}

Required Methods§

Source

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source

fn is(&self, type_id: TypeId) -> bool

Source

fn ptr_id(&self) -> usize

Implementations on Foreign Types§

Source§

impl AnyValueTrait for bool

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Source§

impl AnyValueTrait for f64

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Source§

impl AnyValueTrait for i32

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Source§

impl AnyValueTrait for i64

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Source§

impl AnyValueTrait for ()

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Source§

impl AnyValueTrait for Arc<String>

Source§

fn cast(&self, type_id: TypeId) -> Option<Box<dyn Any>>

Source§

fn is(&self, type_id: TypeId) -> bool

Source§

fn ptr_id(&self) -> usize

Implementors§