pub enum TypeParamBound {
Trait(Type),
Lifetime(Lifetime),
}Expand description
Represents a bound on a type parameter.
Variants§
Trait Implementations§
Source§impl Clone for TypeParamBound
impl Clone for TypeParamBound
Source§fn clone(&self) -> TypeParamBound
fn clone(&self) -> TypeParamBound
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 TypeParamBound
impl Debug for TypeParamBound
Source§impl<'de> Deserialize<'de> for TypeParamBound
impl<'de> Deserialize<'de> for TypeParamBound
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 Hash for TypeParamBound
impl Hash for TypeParamBound
Source§impl PartialEq for TypeParamBound
impl PartialEq for TypeParamBound
Source§impl Serialize for TypeParamBound
impl Serialize for TypeParamBound
impl Eq for TypeParamBound
impl StructuralPartialEq for TypeParamBound
Auto Trait Implementations§
impl Freeze for TypeParamBound
impl RefUnwindSafe for TypeParamBound
impl Send for TypeParamBound
impl Sync for TypeParamBound
impl Unpin for TypeParamBound
impl UnsafeUnpin for TypeParamBound
impl UnwindSafe for TypeParamBound
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