pub struct TypeSignature {Show 23 fields
pub name: String,
pub id: TypeId,
pub is_const: bool,
pub is_mut: bool,
pub is_unsafe: bool,
pub is_impl_trait: bool,
pub is_dyn_trait: bool,
pub is_infer: bool,
pub is_macro: bool,
pub is_never: bool,
pub is_paren: bool,
pub is_group: bool,
pub is_path: bool,
pub is_tuple: bool,
pub is_array: bool,
pub is_slice: bool,
pub is_closure: bool,
pub is_ref: bool,
pub is_ptr: bool,
pub is_verbatim: bool,
pub len: Option<usize>,
pub lifetimes: Vec<String>,
pub children: Vec<TypeSignature>,
}Fields§
§name: String§id: TypeId§is_const: bool§is_mut: bool§is_unsafe: bool§is_impl_trait: bool§is_dyn_trait: bool§is_infer: bool§is_macro: bool§is_never: bool§is_paren: bool§is_group: bool§is_path: bool§is_tuple: bool§is_array: bool§is_slice: bool§is_closure: bool§is_ref: bool§is_ptr: bool§is_verbatim: bool§len: Option<usize>§lifetimes: Vec<String>§children: Vec<TypeSignature>Trait Implementations§
Source§impl Clone for TypeSignature
impl Clone for TypeSignature
Source§fn clone(&self) -> TypeSignature
fn clone(&self) -> TypeSignature
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 TypeSignature
impl Debug for TypeSignature
Source§impl Hash for TypeSignature
impl Hash for TypeSignature
Source§impl Ord for TypeSignature
impl Ord for TypeSignature
Source§fn cmp(&self, other: &TypeSignature) -> Ordering
fn cmp(&self, other: &TypeSignature) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeSignature
impl PartialEq for TypeSignature
Source§impl PartialOrd for TypeSignature
impl PartialOrd for TypeSignature
impl Eq for TypeSignature
impl StructuralPartialEq for TypeSignature
Auto Trait Implementations§
impl Freeze for TypeSignature
impl RefUnwindSafe for TypeSignature
impl Send for TypeSignature
impl Sync for TypeSignature
impl Unpin for TypeSignature
impl UnwindSafe for TypeSignature
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