pub struct DataSourceInfo(/* private fields */);Expand description
A real source capture, including the original selector and actual selected fields.
This metadata is immutable and has no connection to a foreign source’s subsequent values, names, dimensions or lifetime.
Implementations§
Source§impl DataSourceInfo
impl DataSourceInfo
Sourcepub fn binding_name(&self) -> Option<&str>
pub fn binding_name(&self) -> Option<&str>
The explicit logical binding name, when declared.
Sourcepub fn logical_keys(&self) -> Option<&[RawKey]>
pub fn logical_keys(&self) -> Option<&[RawKey]>
The actual logical keys of this binding (before any display mapping).
Sourcepub fn generation(&self) -> Option<BindingGeneration>
pub fn generation(&self) -> Option<BindingGeneration>
The actual generation rule, when this input was generated.
Sourcepub fn reference(&self) -> &DataSourceRef
pub fn reference(&self) -> &DataSourceRef
Opaque actual source capture.
Sourcepub fn selector(&self) -> Option<&BindingSelector>
pub fn selector(&self) -> Option<&BindingSelector>
Authored selector, absent for direct variables.
Sourcepub fn selected_keys(&self) -> Option<&[RawKey]>
pub fn selected_keys(&self) -> Option<&[RawKey]>
Actual selected field keys, when the source has them.
Sourcepub fn selected_indices(&self) -> Option<&[usize]>
pub fn selected_indices(&self) -> Option<&[usize]>
Actual zero-based selected field positions.
Sourcepub fn source_shape(&self) -> &[usize]
pub fn source_shape(&self) -> &[usize]
Original logical source shape.
Sourcepub fn selected_shape(&self) -> &[usize]
pub fn selected_shape(&self) -> &[usize]
Actual selected shape before any further projection.
Trait Implementations§
Source§impl Clone for DataSourceInfo
impl Clone for DataSourceInfo
Source§impl Debug for DataSourceInfo
impl Debug for DataSourceInfo
impl Eq for DataSourceInfo
Source§impl PartialEq for DataSourceInfo
impl PartialEq for DataSourceInfo
impl StructuralPartialEq for DataSourceInfo
Auto Trait Implementations§
impl Forget for DataSourceInfo
impl Freeze for DataSourceInfo
impl Move for DataSourceInfo
impl RefUnwindSafe for DataSourceInfo
impl Send for DataSourceInfo
impl Sync for DataSourceInfo
impl Unpin for DataSourceInfo
impl UnsafeUnpin for DataSourceInfowhere
*const ArcInner<SourceInfo> is !null: UnsafeUnpin,
PhantomData<ArcInner<SourceInfo>>: UnsafeUnpin,
impl UnwindSafe for DataSourceInfowhere
Arc<SourceInfo>: 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.