pub struct BindingRequirement { /* private fields */ }Expand description
A real role and the relationship its shape bears to other input roles.
Implementations§
Source§impl BindingRequirement
impl BindingRequirement
Sourcepub fn role(&self) -> &str
pub fn role(&self) -> &str
Actual declaration path. It can be passed to Recipe selector editing.
Sourcepub fn selector(&self) -> &BindingSelector
pub fn selector(&self) -> &BindingSelector
The exact original selection rule.
Sourcepub fn binding_path(&self) -> impl Iterator<Item = &str>
pub fn binding_path(&self) -> impl Iterator<Item = &str>
The default dependency path, ending at the role’s directly named binding.
Sourcepub fn selectors(&self) -> impl Iterator<Item = &BindingSelector>
pub fn selectors(&self) -> impl Iterator<Item = &BindingSelector>
The ordered selection operations on that path, including whole-object selections.
Sourcepub const fn value_type(&self) -> BindingValueType
pub const fn value_type(&self) -> BindingValueType
The native logical value type required by this role.
Trait Implementations§
Source§impl Clone for BindingRequirement
impl Clone for BindingRequirement
Auto Trait Implementations§
impl Forget for BindingRequirement
impl Freeze for BindingRequirementwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<[u8]> is !null: Freeze,
PhantomData<ArcInner<[u8]>>: Freeze,
PhantomData<RawKey>: Freeze,
*const RawKey is !null: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<isize>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, BindingSelector)>: Freeze,
impl Move for BindingRequirement
impl RefUnwindSafe for BindingRequirement
impl Send for BindingRequirement
impl Sync for BindingRequirement
impl Unpin for BindingRequirement
impl UnsafeUnpin for BindingRequirementwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<[u8]> is !null: UnsafeUnpin,
PhantomData<ArcInner<[u8]>>: UnsafeUnpin,
PhantomData<RawKey>: UnsafeUnpin,
*const RawKey is !null: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<isize>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, BindingSelector)>: UnsafeUnpin,
impl UnwindSafe for BindingRequirementwhere
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.