pub struct TypeParamType {
pub name: String,
}Expand description
Type parameter type used in generic type definitions.
Type parameters represent placeholders for types in generic contexts. They are typically used in function signatures and generic type definitions.
§Examples
use cel_cxx::*;
let type_param = TypeParamType::new("T");
assert_eq!(type_param.name(), "T");Fields§
§name: StringThe name of the type parameter.
Implementations§
Trait Implementations§
Source§impl Clone for TypeParamType
impl Clone for TypeParamType
Source§fn clone(&self) -> TypeParamType
fn clone(&self) -> TypeParamType
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 TypeParamType
impl Debug for TypeParamType
Source§impl Display for TypeParamType
impl Display for TypeParamType
Source§impl From<TypeParamType> for ValueType
impl From<TypeParamType> for ValueType
Source§fn from(value: TypeParamType) -> Self
fn from(value: TypeParamType) -> Self
Converts to this type from the input type.
Source§impl Hash for TypeParamType
impl Hash for TypeParamType
Source§impl PartialEq for TypeParamType
impl PartialEq for TypeParamType
impl Eq for TypeParamType
impl StructuralPartialEq for TypeParamType
Auto Trait Implementations§
impl Freeze for TypeParamType
impl RefUnwindSafe for TypeParamType
impl Send for TypeParamType
impl Sync for TypeParamType
impl Unpin for TypeParamType
impl UnwindSafe for TypeParamType
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<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