pub enum CommonTypes {
String,
Number,
Boolean,
Any,
Null,
Undefined,
Unknown,
Never,
}
Expand description
Reduces string allocation and type lookup overhead. This always point to the same type regardless of context (because no type is allowed to be named these)
Variants§
Trait Implementations§
Source§impl Clone for CommonTypes
impl Clone for CommonTypes
Source§fn clone(&self) -> CommonTypes
fn clone(&self) -> CommonTypes
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 CommonTypes
impl Debug for CommonTypes
Source§impl PartialEq for CommonTypes
impl PartialEq for CommonTypes
Source§impl SelfRustTokenize for CommonTypes
impl SelfRustTokenize for CommonTypes
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 CommonTypes
impl Serialize for CommonTypes
impl StructuralPartialEq for CommonTypes
Auto Trait Implementations§
impl Freeze for CommonTypes
impl RefUnwindSafe for CommonTypes
impl Send for CommonTypes
impl Sync for CommonTypes
impl Unpin for CommonTypes
impl UnwindSafe for CommonTypes
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