pub struct RerouteScopes(/* private fields */);Expand description
Which swaps a session reroutes, by where they ran. Top-level router instructions alone by default. Parsed from one comma-separated string so a flag or an env var carries the set.
Implementations§
Source§impl RerouteScopes
impl RerouteScopes
Sourcepub fn new(scopes: impl IntoIterator<Item = SwapScope>) -> Self
pub fn new(scopes: impl IntoIterator<Item = SwapScope>) -> Self
The set of scopes; repeats collapse.
pub fn contains(&self, scope: SwapScope) -> bool
pub fn is_empty(&self) -> bool
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether this is Self::default (top-level alone).
Trait Implementations§
Source§impl Clone for RerouteScopes
impl Clone for RerouteScopes
Source§impl Debug for RerouteScopes
impl Debug for RerouteScopes
Source§impl Default for RerouteScopes
impl Default for RerouteScopes
Source§impl<'de> Deserialize<'de> for RerouteScopes
impl<'de> Deserialize<'de> for RerouteScopes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RerouteScopes
impl Display for RerouteScopes
impl Eq for RerouteScopes
Source§impl FromStr for RerouteScopes
impl FromStr for RerouteScopes
Source§impl PartialEq for RerouteScopes
impl PartialEq for RerouteScopes
Source§impl Serialize for RerouteScopes
impl Serialize for RerouteScopes
impl StructuralPartialEq for RerouteScopes
Auto Trait Implementations§
impl Forget for RerouteScopes
impl Freeze for RerouteScopeswhere
*const LeafNode<SwapScope, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(SwapScope, SetValZST)>>: Freeze,
impl Move for RerouteScopes
impl RefUnwindSafe for RerouteScopes
impl Send for RerouteScopes
impl Sync for RerouteScopes
impl Unpin for RerouteScopes
impl UnsafeUnpin for RerouteScopeswhere
*const LeafNode<SwapScope, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(SwapScope, SetValZST)>>: UnsafeUnpin,
impl UnwindSafe for RerouteScopes
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