pub enum ClassDescRef {
Inline(Box<ClassDesc>),
Null,
Reference {
handle: u32,
},
}Expand description
Reference to a class descriptor - either inline or a back-reference.
Variants§
Inline(Box<ClassDesc>)
Inline class descriptor.
Null
Null reference (no superclass).
Reference
Back-reference to a previously seen class descriptor by handle.
Implementations§
Source§impl ClassDescRef
impl ClassDescRef
Sourcepub fn class_name(&self) -> Option<&str>
pub fn class_name(&self) -> Option<&str>
Try to get the class name from this class descriptor reference. Returns None for Null references and unresolved Reference types.
Trait Implementations§
Source§impl Clone for ClassDescRef
impl Clone for ClassDescRef
Source§fn clone(&self) -> ClassDescRef
fn clone(&self) -> ClassDescRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClassDescRef
impl RefUnwindSafe for ClassDescRef
impl Send for ClassDescRef
impl Sync for ClassDescRef
impl Unpin for ClassDescRef
impl UnsafeUnpin for ClassDescRef
impl UnwindSafe for ClassDescRef
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