#[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 index(value: isize) -> Self
pub const fn index(value: isize) -> Self
Select one signed position on the actual logical column axis.
Sourcepub fn keys(values: impl IntoIterator<Item = impl Into<RawKey>>) -> Self
pub fn keys(values: impl IntoIterator<Item = impl Into<RawKey>>) -> Self
Select an ordered collection of original keys.
Sourcepub fn indices(values: impl IntoIterator<Item = isize>) -> Self
pub fn indices(values: impl IntoIterator<Item = isize>) -> Self
Select ordered signed logical positions.
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§impl Debug for BindingSelector
impl Debug for BindingSelector
impl Eq for BindingSelector
Source§impl From<&String> for BindingSelector
impl From<&String> for BindingSelector
Source§impl From<&str> for BindingSelector
impl From<&str> for BindingSelector
Source§impl From<RangeFull> for BindingSelector
impl From<RangeFull> for BindingSelector
Source§impl From<RawKey> for BindingSelector
impl From<RawKey> for BindingSelector
Source§impl From<String> for BindingSelector
impl From<String> 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§
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,
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.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.