pub struct BlockData {
pub qualifier: Node<TypeQualifierData>,
pub name: Node<IdentifierData>,
pub fields: Vec<Node<StructFieldSpecifierData>>,
pub identifier: Option<Node<ArrayedIdentifierData>>,
}
Expand description
A general purpose block, containing fields and possibly a list of declared identifiers. Semantic is given with the storage qualifier.
Fields§
§qualifier: Node<TypeQualifierData>
Block type qualifier
name: Node<IdentifierData>
Block name
fields: Vec<Node<StructFieldSpecifierData>>
Declared fields
identifier: Option<Node<ArrayedIdentifierData>>
Associated identifiers
Trait Implementations§
source§impl NodeContent for BlockData
impl NodeContent for BlockData
source§fn into_node<T>(self) -> Node<T>where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T>where
T: From<Self> + NodeContent,
Convert the contents into a node
source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
source§impl NodeContentDisplay for BlockData
impl NodeContentDisplay for BlockData
impl StructuralPartialEq for BlockData
Auto Trait Implementations§
impl Freeze for BlockData
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnwindSafe for BlockData
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)