pub struct Reflector { /* private fields */ }Expand description
Reflector operates on types implementing Access. Some of its methods are being called
automatically from #[derive(Interact)] impls. It provides a thread-safe context, because on
the extreme case, where it is possible that reflection is done via indirection using multiple
process threads (see ReflectIndirect).
Implementations§
Source§impl Reflector
impl Reflector
pub fn new(limit: usize) -> Arc<Self>
pub fn reflect_struct( a_self: &Arc<Self>, desc: &Struct, p_struct: &dyn ReflectStruct, anon: bool, ) -> NodeTree
pub fn reflect_map( a_self: &Arc<Self>, iter: &mut dyn ReflectIter<(&dyn Access, &dyn Access)>, name: &'static str, ) -> NodeTree
pub fn reflect_set( a_self: &Arc<Self>, iter: &mut dyn ReflectIter<&dyn Access>, name: &'static str, ) -> NodeTree
pub fn reflect_vec( a_self: &Arc<Self>, vec: &dyn ReflectVec, name: &'static str, ) -> NodeTree
pub fn seen_ptr( a_self: &Arc<Self>, obj_ptr: (usize, usize), ) -> Result<NodeTree, Arc<AtomicUsize>>
pub fn reflect(a_self: &Arc<Self>, access: &dyn Access) -> NodeTree
Auto Trait Implementations§
impl !Freeze for Reflector
impl RefUnwindSafe for Reflector
impl Send for Reflector
impl Sync for Reflector
impl Unpin for Reflector
impl UnwindSafe for Reflector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more