Struct fuels_types::TypeDeclaration
source · pub struct TypeDeclaration {
pub type_id: usize,
pub type_field: String,
pub components: Option<Vec<TypeApplication>>,
pub type_parameters: Option<Vec<usize>>,
}
Fields§
§type_id: usize
§type_field: String
§components: Option<Vec<TypeApplication>>
§type_parameters: Option<Vec<usize>>
Implementations§
source§impl TypeDeclaration
impl TypeDeclaration
pub fn is_enum_type(&self) -> bool
pub fn is_struct_type(&self) -> bool
Trait Implementations§
source§impl Clone for TypeDeclaration
impl Clone for TypeDeclaration
source§fn clone(&self) -> TypeDeclaration
fn clone(&self) -> TypeDeclaration
Returns a copy 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 moresource§impl Debug for TypeDeclaration
impl Debug for TypeDeclaration
source§impl Default for TypeDeclaration
impl Default for TypeDeclaration
source§fn default() -> TypeDeclaration
fn default() -> TypeDeclaration
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TypeDeclaration
impl<'de> Deserialize<'de> for TypeDeclaration
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<TypeDeclaration> for TypeDeclaration
impl PartialEq<TypeDeclaration> for TypeDeclaration
source§fn eq(&self, other: &TypeDeclaration) -> bool
fn eq(&self, other: &TypeDeclaration) -> bool
source§impl Serialize for TypeDeclaration
impl Serialize for TypeDeclaration
impl Eq for TypeDeclaration
impl StructuralEq for TypeDeclaration
impl StructuralPartialEq for TypeDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for TypeDeclaration
impl Send for TypeDeclaration
impl Sync for TypeDeclaration
impl Unpin for TypeDeclaration
impl UnwindSafe for TypeDeclaration
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.