pub struct StructItem(/* private fields */);
Implementations§
Source§impl StructItem
impl StructItem
pub fn name(&self) -> Option<SyntaxToken>
pub fn fields(&self) -> Vec<StructField>
pub fn export(&self) -> Option<SyntaxToken>
Trait Implementations§
Source§impl AstNode for StructItem
impl AstNode for StructItem
fn cast(node: SyntaxNode) -> Option<Self>
fn syntax(&self) -> &SyntaxNode
Source§impl Clone for StructItem
impl Clone for StructItem
Source§fn clone(&self) -> StructItem
fn clone(&self) -> StructItem
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 StructItem
impl !RefUnwindSafe for StructItem
impl !Send for StructItem
impl !Sync for StructItem
impl Unpin for StructItem
impl !UnwindSafe for StructItem
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