pub struct BlockData {
pub qualifier: Node<TypeQualifierData>,
pub name: Node<IdentifierData>,
pub fields: Vec<Node<StructFieldSpecifierData>, Global>,
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>, Global>
Declared fields
identifier: Option<Node<ArrayedIdentifierData>>
Associated identifiers
Trait Implementations
sourceimpl NodeContent for BlockData
impl NodeContent for BlockData
sourcefn 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
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
sourceimpl NodeContentDisplay for BlockData
impl NodeContentDisplay for BlockData
impl StructuralPartialEq for BlockData
Auto Trait Implementations
impl RefUnwindSafe for BlockData
impl Send for BlockData
impl Sync for BlockData
impl Unpin for BlockData
impl UnwindSafe for BlockData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> NodeDisplay for T where
T: NodeContentDisplay,
impl<T> NodeDisplay for T where
T: NodeContentDisplay,
sourcefn display(&self) -> NodeDisplayWrapper<'_, T>
fn display(&self) -> NodeDisplayWrapper<'_, T>
Obtain a display wrapper for the current node