pub enum TypeNoBounds {
Show 14 variants
MacroInvocation(MacroInvocation),
Path(TypePath),
Parenthesized(ParenthesizedPath),
ImplTraitOneBound(ImplTraitTypeOneBound),
TraitObjectOneBound(TraitObjectTypeOneBound),
Tuple(TupleType),
Never(NeverType),
RawPointer(RawPointerType),
Reference(ReferenceType),
Array(ArrayType),
Slice(SliceType),
Inferred(InferredType),
QualifiedPathIn(QualifiedPathInType),
BareFunction(BareFunctionType),
}Expand description
TypeNoBounds
Variants§
MacroInvocation(MacroInvocation)
Path(TypePath)
Parenthesized(ParenthesizedPath)
ImplTraitOneBound(ImplTraitTypeOneBound)
TraitObjectOneBound(TraitObjectTypeOneBound)
Tuple(TupleType)
Never(NeverType)
RawPointer(RawPointerType)
Reference(ReferenceType)
Array(ArrayType)
Slice(SliceType)
Inferred(InferredType)
QualifiedPathIn(QualifiedPathInType)
BareFunction(BareFunctionType)
Trait Implementations§
Source§impl Clone for TypeNoBounds
impl Clone for TypeNoBounds
Source§fn clone(&self) -> TypeNoBounds
fn clone(&self) -> TypeNoBounds
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 TypeNoBounds
impl Debug for TypeNoBounds
Source§impl<'de> Deserialize<'de> for TypeNoBounds
impl<'de> Deserialize<'de> for TypeNoBounds
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 Format<WhitespaceConfig, ()> for TypeNoBounds
impl Format<WhitespaceConfig, ()> for TypeNoBounds
Source§fn format(
&mut self,
ctx: &mut Context<'_>,
prefix_ws: WhitespaceConfig,
args: (),
) -> FormatOutput
fn format( &mut self, ctx: &mut Context<'_>, prefix_ws: WhitespaceConfig, args: (), ) -> FormatOutput
Formats this type.
Source§impl Formattable for TypeNoBounds
impl Formattable for TypeNoBounds
Source§fn with_prefix_ws<WITH_PREFIX_WS_O>(
&mut self,
ctx: &mut Context<'_>,
f: &mut impl FnMut(&mut Whitespace, &mut Context<'_>) -> WITH_PREFIX_WS_O,
) -> Result<WITH_PREFIX_WS_O, ControlFlow<()>>
fn with_prefix_ws<WITH_PREFIX_WS_O>( &mut self, ctx: &mut Context<'_>, f: &mut impl FnMut(&mut Whitespace, &mut Context<'_>) -> WITH_PREFIX_WS_O, ) -> Result<WITH_PREFIX_WS_O, ControlFlow<()>>
Accesses the prefix whitespace of this type. Read more
Source§fn with_strings<WITH_STRINGS_O>(
&mut self,
ctx: &mut Context<'_>,
exclude_prefix_ws: bool,
f: &mut impl FnMut(&mut AstStr, &mut Context<'_>) -> ControlFlow<WITH_STRINGS_O>,
) -> ControlFlow<WITH_STRINGS_O, bool>
fn with_strings<WITH_STRINGS_O>( &mut self, ctx: &mut Context<'_>, exclude_prefix_ws: bool, f: &mut impl FnMut(&mut AstStr, &mut Context<'_>) -> ControlFlow<WITH_STRINGS_O>, ) -> ControlFlow<WITH_STRINGS_O, bool>
Iterates over all strings in this type. Read more
Source§fn format_output(&mut self, ctx: &mut Context<'_>) -> FormatOutput
fn format_output(&mut self, ctx: &mut Context<'_>) -> FormatOutput
Returns the formatting output for this type, without formatting it.
Source§fn prefix_ws_is_pure(&mut self, ctx: &mut Context<'_>) -> Option<bool>
fn prefix_ws_is_pure(&mut self, ctx: &mut Context<'_>) -> Option<bool>
Returns if the prefix whitespace is pure.
Source§fn prefix_ws_join_prefix(
&mut self,
ctx: &mut Context<'_>,
ws: Whitespace,
) -> Result<(), Whitespace>
fn prefix_ws_join_prefix( &mut self, ctx: &mut Context<'_>, ws: Whitespace, ) -> Result<(), Whitespace>
Joins a string as a prefix onto the prefix whitespace of this type.
Source§impl From<ArrayType> for TypeNoBounds
impl From<ArrayType> for TypeNoBounds
Source§impl From<BareFunctionType> for TypeNoBounds
impl From<BareFunctionType> for TypeNoBounds
Source§fn from(value: BareFunctionType) -> Self
fn from(value: BareFunctionType) -> Self
Converts to this type from the input type.
Source§impl From<ImplTraitTypeOneBound> for TypeNoBounds
impl From<ImplTraitTypeOneBound> for TypeNoBounds
Source§fn from(value: ImplTraitTypeOneBound) -> Self
fn from(value: ImplTraitTypeOneBound) -> Self
Converts to this type from the input type.
Source§impl From<InferredType> for TypeNoBounds
impl From<InferredType> for TypeNoBounds
Source§fn from(value: InferredType) -> Self
fn from(value: InferredType) -> Self
Converts to this type from the input type.
Source§impl From<MacroInvocation> for TypeNoBounds
impl From<MacroInvocation> for TypeNoBounds
Source§fn from(value: MacroInvocation) -> Self
fn from(value: MacroInvocation) -> Self
Converts to this type from the input type.
Source§impl From<NeverType> for TypeNoBounds
impl From<NeverType> for TypeNoBounds
Source§impl From<ParenthesizedPath> for TypeNoBounds
impl From<ParenthesizedPath> for TypeNoBounds
Source§fn from(value: ParenthesizedPath) -> Self
fn from(value: ParenthesizedPath) -> Self
Converts to this type from the input type.
Source§impl From<QualifiedPathInType> for TypeNoBounds
impl From<QualifiedPathInType> for TypeNoBounds
Source§fn from(value: QualifiedPathInType) -> Self
fn from(value: QualifiedPathInType) -> Self
Converts to this type from the input type.
Source§impl From<RawPointerType> for TypeNoBounds
impl From<RawPointerType> for TypeNoBounds
Source§fn from(value: RawPointerType) -> Self
fn from(value: RawPointerType) -> Self
Converts to this type from the input type.
Source§impl From<ReferenceType> for TypeNoBounds
impl From<ReferenceType> for TypeNoBounds
Source§fn from(value: ReferenceType) -> Self
fn from(value: ReferenceType) -> Self
Converts to this type from the input type.
Source§impl From<SliceType> for TypeNoBounds
impl From<SliceType> for TypeNoBounds
Source§impl From<TraitObjectTypeOneBound> for TypeNoBounds
impl From<TraitObjectTypeOneBound> for TypeNoBounds
Source§fn from(value: TraitObjectTypeOneBound) -> Self
fn from(value: TraitObjectTypeOneBound) -> Self
Converts to this type from the input type.
Source§impl From<TupleType> for TypeNoBounds
impl From<TupleType> for TypeNoBounds
Source§impl From<TypePath> for TypeNoBounds
impl From<TypePath> for TypeNoBounds
Source§impl Parse for TypeNoBounds
impl Parse for TypeNoBounds
Source§impl PartialEq for TypeNoBounds
impl PartialEq for TypeNoBounds
Source§impl Print for TypeNoBounds
impl Print for TypeNoBounds
Source§fn print_non_ws(&self, f: &mut PrintFmt)
fn print_non_ws(&self, f: &mut PrintFmt)
Prints this type onto a writer excluding whitespace Read more
Source§impl Serialize for TypeNoBounds
impl Serialize for TypeNoBounds
impl Eq for TypeNoBounds
impl StructuralPartialEq for TypeNoBounds
Auto Trait Implementations§
impl Freeze for TypeNoBounds
impl RefUnwindSafe for TypeNoBounds
impl !Send for TypeNoBounds
impl !Sync for TypeNoBounds
impl Unpin for TypeNoBounds
impl UnsafeUnpin for TypeNoBounds
impl UnwindSafe for TypeNoBounds
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
impl<R, T> FromRecursiveRoot<R> for Twhere
T: From<R>,
fn from_recursive_root(root: R, _parser: &mut Parser) -> T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more