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>
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.
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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more