pub struct UnionDecl { /* private fields */ }Implementations§
Source§impl UnionDecl
impl UnionDecl
pub fn new( env: &Env, types: &Types, name: Option<String>, ty: Type<'_>, ) -> Result<Self, ParseError>
pub fn size(&self) -> usize
pub fn alignment(&self) -> usize
pub fn name(&self) -> Option<&str>
pub fn fields(&self) -> &[Field]
pub fn get_field(&self, name: &str) -> Option<&Field>
Trait Implementations§
impl Eq for UnionDecl
impl StructuralPartialEq for UnionDecl
Auto Trait Implementations§
impl Freeze for UnionDecl
impl RefUnwindSafe for UnionDecl
impl Send for UnionDecl
impl Sync for UnionDecl
impl Unpin for UnionDecl
impl UnsafeUnpin for UnionDecl
impl UnwindSafe for UnionDecl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.