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
sourceimpl TypeDeclaration
impl TypeDeclaration
pub fn is_enum_type(&self) -> bool
pub fn is_struct_type(&self) -> bool
Trait Implementations
sourceimpl Clone for TypeDeclaration
impl Clone for TypeDeclaration
sourcefn clone(&self) -> TypeDeclaration
fn clone(&self) -> TypeDeclaration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for TypeDeclaration
impl Debug for TypeDeclaration
sourceimpl Default for TypeDeclaration
impl Default for TypeDeclaration
sourcefn default() -> TypeDeclaration
fn default() -> TypeDeclaration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TypeDeclaration
impl<'de> Deserialize<'de> for TypeDeclaration
sourcefn 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
sourceimpl PartialEq<TypeDeclaration> for TypeDeclaration
impl PartialEq<TypeDeclaration> for TypeDeclaration
sourcefn eq(&self, other: &TypeDeclaration) -> bool
fn eq(&self, other: &TypeDeclaration) -> bool
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more