pub struct TypeParamDefsItem { /* private fields */ }Implementations§
Source§impl TypeParamDefsItem
impl TypeParamDefsItem
pub fn description<T>(self, value: T) -> TypeParamDefsItem
pub fn max<T>(self, value: T) -> TypeParamDefsItem
pub fn min<T>(self, value: T) -> TypeParamDefsItem
pub fn name<T>(self, value: T) -> TypeParamDefsItem
pub fn optional<T>(self, value: T) -> TypeParamDefsItem
pub fn options<T>(self, value: T) -> TypeParamDefsItem
pub fn type_<T>(self, value: T) -> TypeParamDefsItem
Trait Implementations§
Source§impl Clone for TypeParamDefsItem
impl Clone for TypeParamDefsItem
Source§fn clone(&self) -> TypeParamDefsItem
fn clone(&self) -> TypeParamDefsItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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§fn default() -> TypeParamDefsItem
fn default() -> TypeParamDefsItem
Returns the “default value” for a type. Read more
Source§impl From<TypeParamDefsItem> for TypeParamDefsItem
impl From<TypeParamDefsItem> for TypeParamDefsItem
Source§fn from(value: TypeParamDefsItem) -> TypeParamDefsItem
fn from(value: TypeParamDefsItem) -> TypeParamDefsItem
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<TypeParamDefsItem, ConversionError>
fn try_from( value: TypeParamDefsItem, ) -> Result<TypeParamDefsItem, 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 UnsafeUnpin 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