pub enum MetadataReadGuard<'a, 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: PolarsDataType>(
&self,
props: MetadataProperties,
) -> Metadata<O>
pub fn filter_props_cast<O: PolarsDataType>( &self, props: MetadataProperties, ) -> Metadata<O>
Create a Metadata
with only the properties set in props
.
Sourcepub fn filter_props(&self, props: MetadataProperties) -> Self
pub fn filter_props(&self, props: MetadataProperties) -> Self
Create a Metadata
with only the properties set in props
.
Sourcepub fn merge(&self, other: Self) -> MetadataMerge<T>
pub fn merge(&self, other: Self) -> 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::OwnedPhysical>
pub fn get_max_value(&self) -> Option<&T::OwnedPhysical>
pub fn get_distinct_count(&self) -> Option<IdxSize>
Trait Implementations§
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
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