Enum tynm::TypeParamsFmtOpts
source · pub enum TypeParamsFmtOpts {
All,
Std,
}
Expand description
Specifies the way to output type parameters.
Variants§
All
Output all type parameters, with the m
/n
number of segments.
Std
Only output type parameters if the type is from the standard library.
§Examples
MyStruct<SomeType>
returnsMyStruct
.Vec<SomeType>
returnsVec<SomeType>
.Pin<Box<SomeType>>
returnsPin<Box<SomeType>>
.Box<dyn MyTrait<SomeType>>
returnsBox<dyn MyTrait>
.
Trait Implementations§
source§impl Clone for TypeParamsFmtOpts
impl Clone for TypeParamsFmtOpts
source§fn clone(&self) -> TypeParamsFmtOpts
fn clone(&self) -> TypeParamsFmtOpts
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 TypeParamsFmtOpts
impl Debug for TypeParamsFmtOpts
source§impl PartialEq for TypeParamsFmtOpts
impl PartialEq for TypeParamsFmtOpts
source§fn eq(&self, other: &TypeParamsFmtOpts) -> bool
fn eq(&self, other: &TypeParamsFmtOpts) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypeParamsFmtOpts
impl Eq for TypeParamsFmtOpts
impl StructuralPartialEq for TypeParamsFmtOpts
Auto Trait Implementations§
impl RefUnwindSafe for TypeParamsFmtOpts
impl Send for TypeParamsFmtOpts
impl Sync for TypeParamsFmtOpts
impl Unpin for TypeParamsFmtOpts
impl UnwindSafe for TypeParamsFmtOpts
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