#[repr(C)]pub struct SetPayload {
pub element_descriptor: *const TypeDescriptor,
pub entries: HashSet<DynamicKey>,
}Expand description
The Set[T] payload (§11.3). The element descriptor is a label — what
the construction site knew, or null when it knew nothing. Each member’s
DynamicKey carries its own descriptor, which is what hash and format
dispatch through.
Fields§
§element_descriptor: *const TypeDescriptorThe descriptor for every element, or null when the construction site had
no static element type. Read it through SetPayload::element.
entries: HashSet<DynamicKey>The elements, as DynamicKeys.
Implementations§
Source§impl SetPayload
impl SetPayload
Sourcepub fn element(&self) -> Option<&'static TypeDescriptor>
pub fn element(&self) -> Option<&'static TypeDescriptor>
The element label, or None when this set was never told its element
type.
Auto Trait Implementations§
impl !RefUnwindSafe for SetPayload
impl !Send for SetPayload
impl !Sync for SetPayload
impl !UnwindSafe for SetPayload
impl Freeze for SetPayload
impl Unpin for SetPayload
impl UnsafeUnpin for SetPayload
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