Enum AstBasicTypeSpecifier
pub enum AstBasicTypeSpecifier {
BuiltinType {
specifier: String,
loc: SourceLocation,
},
Alias {
alias_name: AstUniqueName,
loc: SourceLocation,
},
}Expand description
A basic type specifier.
A basic type consists of one or more specifiers. In the example below the basic type is ‘unsigned long int’ and consists of three built-in type specifiers.
unsigned long int salary = 0;
~~~~~~~~ ~~~~ ~~~The following basic type has one alias specifier.
typedef float F32;
F32 temperature = 0.0f;
~~~Variants§
Implementations§
§impl AstBasicTypeSpecifier
impl AstBasicTypeSpecifier
pub fn location(&self) -> SourceLocation
pub fn location(&self) -> SourceLocation
The source location of the specifier.
Trait Implementations§
§impl Clone for AstBasicTypeSpecifier
impl Clone for AstBasicTypeSpecifier
§fn clone(&self) -> AstBasicTypeSpecifier
fn clone(&self) -> AstBasicTypeSpecifier
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 more§impl Debug for AstBasicTypeSpecifier
impl Debug for AstBasicTypeSpecifier
§impl Display for AstBasicTypeSpecifier
impl Display for AstBasicTypeSpecifier
§impl PartialEq for AstBasicTypeSpecifier
impl PartialEq for AstBasicTypeSpecifier
impl Eq for AstBasicTypeSpecifier
Auto Trait Implementations§
impl Freeze for AstBasicTypeSpecifier
impl RefUnwindSafe for AstBasicTypeSpecifier
impl Send for AstBasicTypeSpecifier
impl Sync for AstBasicTypeSpecifier
impl Unpin for AstBasicTypeSpecifier
impl UnwindSafe for AstBasicTypeSpecifier
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