pub enum WeakRestriction {
None,
LifetimeOrLoop,
Dyn,
}Expand description
Restricted contexts where a weak keyword cannot be used.
Variants§
None
The keyword can be used anywhere that permits an identifier.
LifetimeOrLoop
The keyword cannot be used as lifetime or loop label.
Dyn
The keyword is dyn. In 2015 edition, dyn cannot be used
in type position followed by a path that does not start with ::.
Trait Implementations§
Source§impl Clone for WeakRestriction
impl Clone for WeakRestriction
Source§fn clone(&self) -> WeakRestriction
fn clone(&self) -> WeakRestriction
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 WeakRestriction
impl Debug for WeakRestriction
Source§impl PartialEq for WeakRestriction
impl PartialEq for WeakRestriction
impl Copy for WeakRestriction
impl Eq for WeakRestriction
impl StructuralPartialEq for WeakRestriction
Auto Trait Implementations§
impl Freeze for WeakRestriction
impl RefUnwindSafe for WeakRestriction
impl Send for WeakRestriction
impl Sync for WeakRestriction
impl Unpin for WeakRestriction
impl UnwindSafe for WeakRestriction
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