pub struct UserTypeDeclaration {
pub data_type: DataType,
pub initializer: Option<AstNode>,
pub location: SourceLocation,
pub scope: Option<String>,
pub linkage: LinkageType,
}Fields§
§data_type: DataType§initializer: Option<AstNode>§location: SourceLocation§scope: Option<String>stores the original scope for compiler-generated types
linkage: LinkageTypeTrait Implementations§
Source§impl Debug for UserTypeDeclaration
impl Debug for UserTypeDeclaration
Source§impl<'de> Deserialize<'de> for UserTypeDeclarationwhere
'de: 'static,
impl<'de> Deserialize<'de> for UserTypeDeclarationwhere
'de: 'static,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UserTypeDeclaration
impl PartialEq for UserTypeDeclaration
Source§fn eq(&self, other: &UserTypeDeclaration) -> bool
fn eq(&self, other: &UserTypeDeclaration) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UserTypeDeclaration
impl Serialize for UserTypeDeclaration
Source§impl Walker for UserTypeDeclaration
impl Walker for UserTypeDeclaration
fn walk<V>(&self, visitor: &mut V)where
V: AstVisitor,
Source§impl WalkerMut for UserTypeDeclaration
impl WalkerMut for UserTypeDeclaration
fn walk<V>(&mut self, visitor: &mut V)where
V: AstVisitorMut,
impl StructuralPartialEq for UserTypeDeclaration
Auto Trait Implementations§
impl Freeze for UserTypeDeclaration
impl RefUnwindSafe for UserTypeDeclaration
impl Send for UserTypeDeclaration
impl Sync for UserTypeDeclaration
impl Unpin for UserTypeDeclaration
impl UnsafeUnpin for UserTypeDeclaration
impl UnwindSafe for UserTypeDeclaration
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