Struct InstanceStruct
#[repr(C)]pub struct InstanceStruct<T>where
T: ObjectSubclass,{ /* private fields */ }Expand description
A basic instance struct that does not store any additional data.
Trait Implementations§
§impl<T> Debug for InstanceStruct<T>
impl<T> Debug for InstanceStruct<T>
§impl<T> InstanceStruct for InstanceStruct<T>where
T: ObjectSubclass,
impl<T> InstanceStruct for InstanceStruct<T>where
T: ObjectSubclass,
§fn instance_init(&mut self)
fn instance_init(&mut self)
Instance specific initialization. Read more
Auto Trait Implementations§
impl<T> Freeze for InstanceStruct<T>
impl<T> RefUnwindSafe for InstanceStruct<T>
impl<T> Send for InstanceStruct<T>
impl<T> Sync for InstanceStruct<T>
impl<T> Unpin for InstanceStruct<T>
impl<T> UnwindSafe for InstanceStruct<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> InstanceStructExt for Twhere
T: InstanceStruct,
impl<T> InstanceStructExt for Twhere
T: InstanceStruct,
§fn imp(&self) -> &<T as InstanceStruct>::Type
fn imp(&self) -> &<T as InstanceStruct>::Type
Returns the implementation for from this instance struct, that
is the implementor of
ObjectImpl or subtraits.§fn class(&self) -> &<<T as InstanceStruct>::Type as ObjectSubclass>::Class
fn class(&self) -> &<<T as InstanceStruct>::Type as ObjectSubclass>::Class
Returns the class struct for this specific instance.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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