pub enum Narrow {
Same,
Into(u32),
}Expand description
How a child’s scope relates to its parent’s.
There is no “widen” variant, and that absence is the whole safety argument.
Variants§
Trait Implementations§
impl Copy for Narrow
impl Eq for Narrow
impl StructuralPartialEq for Narrow
Auto Trait Implementations§
impl Freeze for Narrow
impl RefUnwindSafe for Narrow
impl Send for Narrow
impl Sync for Narrow
impl Unpin for Narrow
impl UnwindSafe for Narrow
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