#[non_exhaustive]#[repr(C)]pub struct SetDef<'shape> {
pub vtable: &'shape SetVTable,
pub t: fn() -> &'shape Shape<'shape>,
}
Expand description
Fields for set types
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.vtable: &'shape SetVTable
vtable for interacting with the set
t: fn() -> &'shape Shape<'shape>
shape of the values in the set
Implementations§
Trait Implementations§
impl<'shape> Copy for SetDef<'shape>
impl<'shape> Eq for SetDef<'shape>
impl<'shape> StructuralPartialEq for SetDef<'shape>
Auto Trait Implementations§
impl<'shape> Freeze for SetDef<'shape>
impl<'shape> RefUnwindSafe for SetDef<'shape>
impl<'shape> Send for SetDef<'shape>
impl<'shape> Sync for SetDef<'shape>
impl<'shape> Unpin for SetDef<'shape>
impl<'shape> UnwindSafe for SetDef<'shape>
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