pub enum RegionSelection {
All,
Some(HashSet<Rc<str>>),
}
Expand description
Represents multiple regions
Variants§
Implementations§
Source§impl RegionSelection
impl RegionSelection
Sourcepub fn contains(&self, region_id: &str) -> bool
pub fn contains(&self, region_id: &str) -> bool
Returns true if the RegionSelection
covers a given region
Trait Implementations§
Source§impl Clone for RegionSelection
impl Clone for RegionSelection
Source§fn clone(&self) -> RegionSelection
fn clone(&self) -> RegionSelection
Returns a copy 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 RegionSelection
impl Debug for RegionSelection
Source§impl Default for RegionSelection
impl Default for RegionSelection
Source§fn default() -> RegionSelection
fn default() -> RegionSelection
Returns the “default value” for a type. Read more
Source§impl Display for RegionSelection
impl Display for RegionSelection
Source§impl PartialEq for RegionSelection
impl PartialEq for RegionSelection
impl StructuralPartialEq for RegionSelection
Auto Trait Implementations§
impl Freeze for RegionSelection
impl RefUnwindSafe for RegionSelection
impl !Send for RegionSelection
impl !Sync for RegionSelection
impl Unpin for RegionSelection
impl UnwindSafe for RegionSelection
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<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