pub struct Inspectable<T: IsInspectable> { /* private fields */ }
Expand description
A wrapper around a type T that bundles some inspect data alongside instances of the type.
Implementations§
Source§impl<T: IsInspectable> Inspectable<T>
impl<T: IsInspectable> Inspectable<T>
Sourcepub fn new(object: T, inspect: Node) -> Inspectable<T>
pub fn new(object: T, inspect: Node) -> Inspectable<T>
Create a new instance of an Inspectable
wrapper type containing the T instance that
it wraps along with populated inspect data.
Trait Implementations§
Source§impl<T: Debug + IsInspectable> Debug for Inspectable<T>
impl<T: Debug + IsInspectable> Debug for Inspectable<T>
Source§impl<T: IsInspectable> Deref for Inspectable<T>
impl<T: IsInspectable> Deref for Inspectable<T>
Inspectable
s can always safely be immutably dereferenced as the type T that they wrap
because the data will not be mutated through this reference.
Auto Trait Implementations§
impl<T> Freeze for Inspectable<T>
impl<T> RefUnwindSafe for Inspectable<T>
impl<T> Send for Inspectable<T>
impl<T> Sync for Inspectable<T>
impl<T> Unpin for Inspectable<T>
impl<T> UnwindSafe for Inspectable<T>
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