pub struct TypeParamDefsItem { /* private fields */ }
Implementations§
Source§impl TypeParamDefsItem
impl TypeParamDefsItem
pub fn description<T>(self, value: T) -> Self
pub fn max<T>(self, value: T) -> Self
pub fn min<T>(self, value: T) -> Self
pub fn name<T>(self, value: T) -> Self
pub fn optional<T>(self, value: T) -> Self
pub fn options<T>(self, value: T) -> Self
pub fn type_<T>(self, value: T) -> Self
Trait Implementations§
Source§impl Clone for TypeParamDefsItem
impl Clone for TypeParamDefsItem
Source§fn clone(&self) -> TypeParamDefsItem
fn clone(&self) -> TypeParamDefsItem
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 TypeParamDefsItem
impl Debug for TypeParamDefsItem
Source§impl Default for TypeParamDefsItem
impl Default for TypeParamDefsItem
Source§impl From<TypeParamDefsItem> for TypeParamDefsItem
impl From<TypeParamDefsItem> for TypeParamDefsItem
Source§fn from(value: TypeParamDefsItem) -> Self
fn from(value: TypeParamDefsItem) -> Self
Converts to this type from the input type.
Source§impl TryFrom<TypeParamDefsItem> for TypeParamDefsItem
impl TryFrom<TypeParamDefsItem> for TypeParamDefsItem
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: TypeParamDefsItem) -> Result<Self, ConversionError>
fn try_from(value: TypeParamDefsItem) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for TypeParamDefsItem
impl RefUnwindSafe for TypeParamDefsItem
impl Send for TypeParamDefsItem
impl Sync for TypeParamDefsItem
impl Unpin for TypeParamDefsItem
impl UnwindSafe for TypeParamDefsItem
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