pub enum TypeOrConst {
Type(Box<TypeAnnotation>),
Const(Span),
}
Variants§
Type(Box<TypeAnnotation>)
Const(Span)
Trait Implementations§
Source§impl Clone for TypeOrConst
impl Clone for TypeOrConst
Source§fn clone(&self) -> TypeOrConst
fn clone(&self) -> TypeOrConst
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 TypeOrConst
impl Debug for TypeOrConst
Source§impl PartialEq for TypeOrConst
impl PartialEq for TypeOrConst
Source§impl SelfRustTokenize for TypeOrConst
impl SelfRustTokenize for TypeOrConst
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
Source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
Source§impl Serialize for TypeOrConst
impl Serialize for TypeOrConst
Source§impl Visitable for TypeOrConst
impl Visitable for TypeOrConst
fn visit<TData>( &self, visitors: &mut (impl VisitorReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
fn visit_mut<TData>( &mut self, visitors: &mut (impl VisitorMutReceiver<TData> + ?Sized), data: &mut TData, options: &VisitOptions, chain: &mut Annex<'_, Chain>, )
impl StructuralPartialEq for TypeOrConst
Auto Trait Implementations§
impl Freeze for TypeOrConst
impl RefUnwindSafe for TypeOrConst
impl Send for TypeOrConst
impl Sync for TypeOrConst
impl Unpin for TypeOrConst
impl UnwindSafe for TypeOrConst
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