#[non_exhaustive]pub enum BindingSelector {
Key(RawKey),
Keys(Vec<RawKey>),
Index(isize),
Indices(Vec<isize>),
Slice(BindingSlice),
All,
NumericOnly,
Whole,
}Expand description
A captured selection, distinct from its resolved field positions and keys.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Key(RawKey)
One complete original field key.
Keys(Vec<RawKey>)
Ordered complete field keys.
Index(isize)
One original signed index.
Indices(Vec<isize>)
Ordered original signed indices.
Slice(BindingSlice)
Original slice.
All
Dynamic all-fields selection.
NumericOnly
Dynamic numerical-field discovery.
Whole
Entire object.
Implementations§
Source§impl BindingSelector
impl BindingSelector
Sourcepub const fn kind(&self) -> BindingSelectorKind
pub const fn kind(&self) -> BindingSelectorKind
Discriminant of the actual selector.
Sourcepub fn get_indices(&self) -> Option<&[isize]>
pub fn get_indices(&self) -> Option<&[isize]>
Original ordered signed indices.
Sourcepub const fn get_slice(&self) -> Option<&BindingSlice>
pub const fn get_slice(&self) -> Option<&BindingSlice>
Original slice rule.
Trait Implementations§
Source§impl Clone for BindingSelector
impl Clone for BindingSelector
Source§fn clone(&self) -> BindingSelector
fn clone(&self) -> BindingSelector
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BindingSelector
impl Debug for BindingSelector
impl Eq for BindingSelector
Source§impl Hash for BindingSelector
impl Hash for BindingSelector
Source§impl PartialEq for BindingSelector
impl PartialEq for BindingSelector
impl StructuralPartialEq for BindingSelector
Auto Trait Implementations§
impl Forget for BindingSelector
impl Freeze for BindingSelector
impl Move for BindingSelector
impl RefUnwindSafe for BindingSelector
impl Send for BindingSelector
impl Sync for BindingSelector
impl Unpin for BindingSelector
impl UnsafeUnpin for BindingSelectorwhere
*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,
impl UnwindSafe for BindingSelectorwhere
RawVecInner: UnwindSafe,
Arc<[u8]>: UnwindSafe,
BoxRaw<RawKey>: UnwindSafe,
Arc<str>: UnwindSafe,
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,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
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.