pub struct DiscriminantInfo {
pub property_name: Atom,
pub variants: Vec<(TypeId, TypeId)>,
}Expand description
Result of finding discriminant properties in a union.
Fields§
§property_name: AtomThe name of the discriminant property
variants: Vec<(TypeId, TypeId)>Map from literal value to the union member type
Trait Implementations§
Source§impl Clone for DiscriminantInfo
impl Clone for DiscriminantInfo
Source§fn clone(&self) -> DiscriminantInfo
fn clone(&self) -> DiscriminantInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for DiscriminantInfo
impl RefUnwindSafe for DiscriminantInfo
impl Send for DiscriminantInfo
impl Sync for DiscriminantInfo
impl Unpin for DiscriminantInfo
impl UnsafeUnpin for DiscriminantInfo
impl UnwindSafe for DiscriminantInfo
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