pub enum BranchScope {
Local,
Subtree,
}Expand description
Declared visibility scope of a Control. Governs how
descendant components resolve the control and how set
writes propagate to newly-instantiated components below the
declaring node. See SRD 23 §“Branch-scoped and final
controls”.
Variants§
Local
Control applies only to the component that declares it.
Descendants resolve the same name only if they declare
it themselves (or if an ancestor declares it with
BranchScope::Subtree).
Subtree
Control applies to the declaring component and every descendant in the subtree. Descendants resolving the control name walk up and find this declaration; descendant components constructed after a successful write read the new committed value at construction.
Trait Implementations§
Source§impl Clone for BranchScope
impl Clone for BranchScope
impl Copy for BranchScope
Source§impl Debug for BranchScope
impl Debug for BranchScope
impl Eq for BranchScope
Source§impl PartialEq for BranchScope
impl PartialEq for BranchScope
impl StructuralPartialEq for BranchScope
Auto Trait Implementations§
impl Freeze for BranchScope
impl RefUnwindSafe for BranchScope
impl Send for BranchScope
impl Sync for BranchScope
impl Unpin for BranchScope
impl UnsafeUnpin for BranchScope
impl UnwindSafe for BranchScope
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.