pub struct InstanceArg {
pub descriptor: Option<&'static TypeDescriptor>,
pub sample: Option<GcRef>,
}Expand description
One per-instance type argument a value records.
descriptor is what the payload stores — None when the collection was
never told its element type (a null element descriptor, which every
praxis_*_new wrapper accepts as “unknown”). sample is a live value that
argument describes, when the payload holds one; recursing into it recovers
nested arguments a descriptor alone cannot (Vec[Vec[Int]]).
Fields§
§descriptor: Option<&'static TypeDescriptor>The descriptor the payload records for this argument position.
sample: Option<GcRef>A live value of this argument’s type, if the value holds one.
Trait Implementations§
Source§impl Clone for InstanceArg
impl Clone for InstanceArg
Source§fn clone(&self) -> InstanceArg
fn clone(&self) -> InstanceArg
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 moreimpl Copy for InstanceArg
Auto Trait Implementations§
impl !RefUnwindSafe for InstanceArg
impl !Send for InstanceArg
impl !Sync for InstanceArg
impl !UnwindSafe for InstanceArg
impl Freeze for InstanceArg
impl Unpin for InstanceArg
impl UnsafeUnpin for InstanceArg
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