#[non_exhaustive]pub enum DeclarationKind {
Show 18 variants
Function,
Method,
Class,
Interface,
Enum,
TypeAlias,
Field,
Constant,
Variable,
Module,
Struct,
Trait,
Table,
View,
Procedure,
Selector,
Resource,
Heading,
}Expand description
What a declared name is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Function
Method
Class
Interface
Enum
TypeAlias
Field
Constant
Variable
Module
Struct
Trait
Table
View
Procedure
Selector
A CSS class or id selector, named with its leading . or #.
Resource
An infrastructure object: a Terraform resource, data source or output.
Heading
A section heading in a document.
Trait Implementations§
Source§impl Clone for DeclarationKind
impl Clone for DeclarationKind
Source§fn clone(&self) -> DeclarationKind
fn clone(&self) -> DeclarationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DeclarationKind
Source§impl Debug for DeclarationKind
impl Debug for DeclarationKind
impl Eq for DeclarationKind
Source§impl PartialEq for DeclarationKind
impl PartialEq for DeclarationKind
impl StructuralPartialEq for DeclarationKind
Auto Trait Implementations§
impl Freeze for DeclarationKind
impl RefUnwindSafe for DeclarationKind
impl Send for DeclarationKind
impl Sync for DeclarationKind
impl Unpin for DeclarationKind
impl UnsafeUnpin for DeclarationKind
impl UnwindSafe for DeclarationKind
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