pub struct BuiltinTypeDecl {
pub name: String,
pub name_span: Span,
pub doc_comment: Option<DocComment>,
pub type_params: Option<Vec<TypeParam>>,
}Expand description
Declaration-only intrinsic type in std/core metadata.
Fields§
§name: String§name_span: Span§doc_comment: Option<DocComment>§type_params: Option<Vec<TypeParam>>Trait Implementations§
Source§impl Clone for BuiltinTypeDecl
impl Clone for BuiltinTypeDecl
Source§fn clone(&self) -> BuiltinTypeDecl
fn clone(&self) -> BuiltinTypeDecl
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 moreSource§impl Debug for BuiltinTypeDecl
impl Debug for BuiltinTypeDecl
Source§impl<'de> Deserialize<'de> for BuiltinTypeDecl
impl<'de> Deserialize<'de> for BuiltinTypeDecl
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 BuiltinTypeDecl
impl PartialEq for BuiltinTypeDecl
Source§impl Serialize for BuiltinTypeDecl
impl Serialize for BuiltinTypeDecl
impl StructuralPartialEq for BuiltinTypeDecl
Auto Trait Implementations§
impl Freeze for BuiltinTypeDecl
impl RefUnwindSafe for BuiltinTypeDecl
impl Send for BuiltinTypeDecl
impl Sync for BuiltinTypeDecl
impl Unpin for BuiltinTypeDecl
impl UnsafeUnpin for BuiltinTypeDecl
impl UnwindSafe for BuiltinTypeDecl
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