pub struct BoundedTypeVar<TypeVar, Bounds>(pub TypeVar, pub Bounds);Expand description
A type variable with a sequence of bounds.
Will render as TypeVar: B1 + B2 + ...
Tuple Fields§
§0: TypeVar§1: BoundsTrait Implementations§
Source§impl<TypeVar: Clone, Bounds: Clone> Clone for BoundedTypeVar<TypeVar, Bounds>
impl<TypeVar: Clone, Bounds: Clone> Clone for BoundedTypeVar<TypeVar, Bounds>
Source§fn clone(&self) -> BoundedTypeVar<TypeVar, Bounds>
fn clone(&self) -> BoundedTypeVar<TypeVar, Bounds>
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 moreAuto Trait Implementations§
impl<TypeVar, Bounds> Freeze for BoundedTypeVar<TypeVar, Bounds>
impl<TypeVar, Bounds> RefUnwindSafe for BoundedTypeVar<TypeVar, Bounds>where
TypeVar: RefUnwindSafe,
Bounds: RefUnwindSafe,
impl<TypeVar, Bounds> Send for BoundedTypeVar<TypeVar, Bounds>
impl<TypeVar, Bounds> Sync for BoundedTypeVar<TypeVar, Bounds>
impl<TypeVar, Bounds> Unpin for BoundedTypeVar<TypeVar, Bounds>
impl<TypeVar, Bounds> UnwindSafe for BoundedTypeVar<TypeVar, Bounds>where
TypeVar: UnwindSafe,
Bounds: 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