pub enum DeclaredParent {
Resolved {
identity: ClassIdentity,
class: ClassRef,
},
Unresolved {
identity: ClassIdentity,
reference: Ref,
},
}Expand description
A declared parent, explicitly separated by resolution state.
Variants§
Resolved
The loader has supplied a concrete class object.
Unresolved
Resolution remains loader-owned; the reference is preserved verbatim.
Implementations§
Source§impl DeclaredParent
impl DeclaredParent
pub fn resolved(identity: ClassIdentity, class: ClassRef) -> Self
pub fn unresolved(identity: ClassIdentity, reference: Ref) -> Self
pub fn identity(&self) -> &ClassIdentity
pub fn unresolved_reference(&self) -> Option<&Ref>
pub fn resolved_class(&self) -> Option<&ClassRef>
Trait Implementations§
Source§impl Clone for DeclaredParent
impl Clone for DeclaredParent
Source§fn clone(&self) -> DeclaredParent
fn clone(&self) -> DeclaredParent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for DeclaredParent
impl !UnwindSafe for DeclaredParent
impl Freeze for DeclaredParent
impl Send for DeclaredParent
impl Sync for DeclaredParent
impl Unpin for DeclaredParent
impl UnsafeUnpin for DeclaredParent
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