pub struct GenericTypeArgGenericTypeWrapper<T: GenericTypeArgGenericType>(/* private fields */);
Expand description
Wrapper for a specialization generator with a single type arg.
Trait Implementations§
source§impl<T: Default + GenericTypeArgGenericType> Default for GenericTypeArgGenericTypeWrapper<T>
impl<T: Default + GenericTypeArgGenericType> Default for GenericTypeArgGenericTypeWrapper<T>
source§fn default() -> GenericTypeArgGenericTypeWrapper<T>
fn default() -> GenericTypeArgGenericTypeWrapper<T>
Returns the “default value” for a type. Read more
source§impl<T: GenericTypeArgGenericType> NamedType for GenericTypeArgGenericTypeWrapper<T>
impl<T: GenericTypeArgGenericType> NamedType for GenericTypeArgGenericTypeWrapper<T>
const ID: GenericTypeId = T::ID
type Concrete = InfoAndTypeConcreteType
source§fn specialize(
&self,
context: &dyn TypeSpecializationContext,
args: &[GenericArg],
) -> Result<Self::Concrete, SpecializationError>
fn specialize( &self, context: &dyn TypeSpecializationContext, args: &[GenericArg], ) -> Result<Self::Concrete, SpecializationError>
Creates the specialization with the template arguments.
source§fn id() -> GenericTypeId
fn id() -> GenericTypeId
Returns the generic id of named types.
source§fn concrete_type_long_id(generic_args: &[GenericArg]) -> ConcreteTypeLongId
fn concrete_type_long_id(generic_args: &[GenericArg]) -> ConcreteTypeLongId
Returns the long ID of the concrete type with
ID
as the generic ID and the given args.Auto Trait Implementations§
impl<T> Freeze for GenericTypeArgGenericTypeWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for GenericTypeArgGenericTypeWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for GenericTypeArgGenericTypeWrapper<T>where
T: Send,
impl<T> Sync for GenericTypeArgGenericTypeWrapper<T>where
T: Sync,
impl<T> Unpin for GenericTypeArgGenericTypeWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for GenericTypeArgGenericTypeWrapper<T>where
T: UnwindSafe,
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<TNamedType> GenericType for TNamedTypewhere
TNamedType: NamedType,
impl<TNamedType> GenericType for TNamedTypewhere
TNamedType: NamedType,
type Concrete = <TNamedType as NamedType>::Concrete
source§fn by_id(id: &GenericTypeId) -> Option<TNamedType>
fn by_id(id: &GenericTypeId) -> Option<TNamedType>
Instantiates the type by id.
source§fn specialize(
&self,
context: &dyn TypeSpecializationContext,
args: &[GenericArg],
) -> Result<<TNamedType as GenericType>::Concrete, SpecializationError>
fn specialize( &self, context: &dyn TypeSpecializationContext, args: &[GenericArg], ) -> Result<<TNamedType as GenericType>::Concrete, SpecializationError>
Creates the specialization with the template arguments.
source§impl<TGenericType> GenericTypeEx for TGenericTypewhere
TGenericType: GenericType,
impl<TGenericType> GenericTypeEx for TGenericTypewhere
TGenericType: GenericType,
fn specialize_by_id( context: &dyn TypeSpecializationContext, type_id: &GenericTypeId, args: &[GenericArg], ) -> Result<<TGenericType as GenericType>::Concrete, ExtensionError>
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