pub enum MetadataReadGuard<'a, T>where
T: PolarsDataType + 'a,{
Unlocked(RwLockReadGuard<'a, Metadata<T>>),
Locked(&'a Metadata<T>),
}
Expand description
A read guard for Metadata
Variants§
Unlocked(RwLockReadGuard<'a, Metadata<T>>)
Locked(&'a Metadata<T>)
Methods from Deref<Target = Metadata<T>>§
pub const DEFAULT: Metadata<T> = _
Sourcepub fn filter_props_cast<O>(&self, props: MetadataProperties) -> Metadata<O>where
O: PolarsDataType,
pub fn filter_props_cast<O>(&self, props: MetadataProperties) -> Metadata<O>where
O: PolarsDataType,
Create a Metadata
with only the properties set in props
.
Sourcepub fn filter_props(&self, props: MetadataProperties) -> Metadata<T>
pub fn filter_props(&self, props: MetadataProperties) -> Metadata<T>
Create a Metadata
with only the properties set in props
.
Sourcepub fn merge(&self, other: Metadata<T>) -> MetadataMerge<T>
pub fn merge(&self, other: Metadata<T>) -> MetadataMerge<T>
Merge the maximum information from both Metadata
s into one Metadata
.
It returns
MetadataMerge::Keep
if theself
already contains all the informationMetadataMerge::New(md)
if we have learned new informationMetadataMerge::Conflict
if the two structures contain conflicting metadata
pub fn is_empty(&self) -> bool
pub fn is_sorted_ascending(&self) -> bool
pub fn is_sorted_descending(&self) -> bool
pub fn get_fast_explode_list(&self) -> bool
pub fn is_sorted_any(&self) -> bool
pub fn is_sorted(&self) -> IsSorted
pub fn get_flags(&self) -> MetadataFlags
pub fn get_min_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>
pub fn get_max_value(&self) -> Option<&<T as PolarsDataType>::OwnedPhysical>
pub fn get_distinct_count(&self) -> Option<u32>
Trait Implementations§
Source§impl<'a, T> Deref for MetadataReadGuard<'a, T>where
T: PolarsDataType + 'a,
impl<'a, T> Deref for MetadataReadGuard<'a, T>where
T: PolarsDataType + 'a,
Auto Trait Implementations§
impl<'a, T> Freeze for MetadataReadGuard<'a, T>
impl<'a, T> RefUnwindSafe for MetadataReadGuard<'a, T>
impl<'a, T> !Send for MetadataReadGuard<'a, T>
impl<'a, T> Sync for MetadataReadGuard<'a, T>
impl<'a, T> Unpin for MetadataReadGuard<'a, T>
impl<'a, T> UnwindSafe for MetadataReadGuard<'a, T>
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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> ⓘ
Converts
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> ⓘ
Converts
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 more