pub enum LayoutSource {
LayoutFacet,
LayoutNamespace,
SchemaNamespace,
FirstRecord,
}Expand description
Where a Layout was learned from, strongest first.
The order is the order Layout::resolve tries them in. The first
three are declared: someone who knew the schema wrote it down.
The last is inferred from one record, and is weaker in ways a
caller proving types before a run needs to know about — see
Layout::unproven.
Variants§
LayoutFacet
The dataset’s metadata_layout facet: the authoritative home.
LayoutNamespace
The layout namespace inside the metadata_content slab: a
copy of the same bytes, which slab rebuilds may drop.
SchemaNamespace
The schema namespace inside the metadata_content slab: the
source’s column names and type names, as a converter wrote
them. It does not say what a container holds.
FirstRecord
The facet’s first record. A field that is null there has no type, and a container that is empty there has no element type.
Implementations§
Source§impl LayoutSource
impl LayoutSource
Sourcepub fn is_declared(self) -> bool
pub fn is_declared(self) -> bool
Whether the layout was written down by a producer, as opposed to inferred from a record.
Trait Implementations§
Source§impl Clone for LayoutSource
impl Clone for LayoutSource
Source§fn clone(&self) -> LayoutSource
fn clone(&self) -> LayoutSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LayoutSource
Source§impl Debug for LayoutSource
impl Debug for LayoutSource
Source§impl Display for LayoutSource
impl Display for LayoutSource
impl Eq for LayoutSource
Source§impl PartialEq for LayoutSource
impl PartialEq for LayoutSource
impl StructuralPartialEq for LayoutSource
Auto Trait Implementations§
impl Forget for LayoutSource
impl Freeze for LayoutSource
impl Move for LayoutSource
impl RefUnwindSafe for LayoutSource
impl Send for LayoutSource
impl Sync for LayoutSource
impl Unpin for LayoutSource
impl UnsafeUnpin for LayoutSource
impl UnwindSafe for LayoutSource
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more