pub struct ClassDescriptor { /* private fields */ }Expand description
Immutable class metadata after construction-time validation.
Implementations§
Source§impl ClassDescriptor
impl ClassDescriptor
pub fn new(input: ClassDescriptorInput) -> Result<Self, ClassDescriptorError>
pub fn identity(&self) -> &ClassIdentity
pub fn parents(&self) -> &[DeclaredParent]
pub fn constructor_shape(&self) -> &ShapeRef
pub fn instance_shape(&self) -> &ShapeRef
pub fn members(&self) -> &[MemberShape]
pub fn read_construction(&self) -> Option<&ReadConstruction>
pub fn metadata(&self) -> &[OpenMetadataEntry]
Trait Implementations§
Source§impl Clone for ClassDescriptor
impl Clone for ClassDescriptor
Source§fn clone(&self) -> ClassDescriptor
fn clone(&self) -> ClassDescriptor
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 ClassDescriptor
impl !UnwindSafe for ClassDescriptor
impl Freeze for ClassDescriptor
impl Send for ClassDescriptor
impl Sync for ClassDescriptor
impl Unpin for ClassDescriptor
impl UnsafeUnpin for ClassDescriptor
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