pub struct BitfieldNode {
pub node_id: NodeId,
pub name: Option<String>,
pub bits: u16,
pub holder_type: Option<Ref<TypeNode>>,
pub parent: Id<TypeNode>,
pub facets: Facets,
}Expand description
One bitset field. Spec §3.3.
Fields§
§node_id: NodeIdStable identity.
name: Option<String>Simple name. Anonymous padding fields have none.
bits: u16Width in bits.
holder_type: Option<Ref<TypeNode>>Explicit holder type, if declared.
parent: Id<TypeNode>The bitset this field belongs to.
facets: FacetsPer-source information. Spec §4.
Implementations§
Source§impl BitfieldNode
impl BitfieldNode
Sourcepub const fn is_padding(&self) -> bool
pub const fn is_padding(&self) -> bool
Whether this is an anonymous padding field.
Trait Implementations§
Source§impl Clone for BitfieldNode
impl Clone for BitfieldNode
Source§impl Debug for BitfieldNode
impl Debug for BitfieldNode
impl Eq for BitfieldNode
Source§impl PartialEq for BitfieldNode
impl PartialEq for BitfieldNode
impl StructuralPartialEq for BitfieldNode
Auto Trait Implementations§
impl Freeze for BitfieldNode
impl RefUnwindSafe for BitfieldNode
impl Send for BitfieldNode
impl Sync for BitfieldNode
impl Unpin for BitfieldNode
impl UnsafeUnpin for BitfieldNode
impl UnwindSafe for BitfieldNode
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