pub enum ScopeClosure {
Open,
Closed,
}
Expand description
Type to indicate whether scopes are open or closed.
Variants§
Open
A scope that is open and therefore not isolated from its parent scope.
Closed
A scope that is closed and therefore isolated from its parent scope.
Trait Implementations§
Source§impl Clone for ScopeClosure
impl Clone for ScopeClosure
Source§fn clone(&self) -> ScopeClosure
fn clone(&self) -> ScopeClosure
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 ScopeClosure
impl Debug for ScopeClosure
Source§impl Default for ScopeClosure
impl Default for ScopeClosure
Source§fn default() -> ScopeClosure
fn default() -> ScopeClosure
Returns the “default value” for a type. Read more
Source§impl Hash for ScopeClosure
impl Hash for ScopeClosure
Source§impl Ord for ScopeClosure
impl Ord for ScopeClosure
Source§fn cmp(&self, other: &ScopeClosure) -> Ordering
fn cmp(&self, other: &ScopeClosure) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScopeClosure
impl PartialEq for ScopeClosure
Source§impl PartialOrd for ScopeClosure
impl PartialOrd for ScopeClosure
impl Copy for ScopeClosure
impl Eq for ScopeClosure
impl StructuralPartialEq for ScopeClosure
Auto Trait Implementations§
impl Freeze for ScopeClosure
impl RefUnwindSafe for ScopeClosure
impl Send for ScopeClosure
impl Sync for ScopeClosure
impl Unpin for ScopeClosure
impl UnwindSafe for ScopeClosure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more