pub struct Metadata<T>where
T: PolarsDataType,{ /* private fields */ }
Implementations§
Source§impl<T> Metadata<T>where
T: PolarsDataType,
impl<T> Metadata<T>where
T: PolarsDataType,
pub const DEFAULT: Metadata<T> = _
pub fn sorted(self, is_sorted: IsSorted) -> Metadata<T>
pub fn fast_explode_list(self, fast_explode_list: bool) -> Metadata<T>
pub fn flags(self, flags: MetadataFlags) -> Metadata<T>
pub fn min_value( self, min_value: <T as PolarsDataType>::OwnedPhysical, ) -> Metadata<T>
pub fn max_value( self, max_value: <T as PolarsDataType>::OwnedPhysical, ) -> Metadata<T>
pub fn distinct_count(self, distinct_count: u32) -> Metadata<T>
pub fn sorted_opt(self, is_sorted: Option<IsSorted>) -> Metadata<T>
pub fn fast_explode_list_opt( self, fast_explode_list: Option<bool>, ) -> Metadata<T>
pub fn flags_opt(self, flags: Option<MetadataFlags>) -> Metadata<T>
pub fn min_value_opt( self, min_value: Option<<T as PolarsDataType>::OwnedPhysical>, ) -> Metadata<T>
pub fn max_value_opt( self, max_value: Option<<T as PolarsDataType>::OwnedPhysical>, ) -> Metadata<T>
pub fn distinct_count_opt(self, distinct_count: Option<u32>) -> 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 set_sorted_ascending(&mut self, value: bool)
pub fn is_sorted_descending(&self) -> bool
pub fn set_sorted_descending(&mut self, value: bool)
pub fn get_fast_explode_list(&self) -> bool
pub fn set_fast_explode_list(&mut self, value: bool)
pub fn is_sorted_any(&self) -> bool
pub fn is_sorted(&self) -> IsSorted
pub fn set_sorted_flag(&mut self, is_sorted: IsSorted)
pub fn set_flags(&mut self, flags: MetadataFlags)
pub fn set_min_value( &mut self, min_value: Option<<T as PolarsDataType>::OwnedPhysical>, )
pub fn set_max_value( &mut self, max_value: Option<<T as PolarsDataType>::OwnedPhysical>, )
pub fn set_distinct_count(&mut self, distinct_count: Option<u32>)
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<T> Clone for Metadata<T>where
T: PolarsDataType,
impl<T> Clone for Metadata<T>where
T: PolarsDataType,
Source§impl<T> Debug for Metadata<T>where
T: PolarsDataType,
impl<T> Debug for Metadata<T>where
T: PolarsDataType,
Source§impl<T> Default for Metadata<T>where
T: PolarsDataType,
impl<T> Default for Metadata<T>where
T: PolarsDataType,
Source§impl<T> MetadataTrait for Metadata<T>
impl<T> MetadataTrait for Metadata<T>
Auto Trait Implementations§
impl<T> Freeze for Metadata<T>
impl<T> RefUnwindSafe for Metadata<T>
impl<T> Send for Metadata<T>
impl<T> Sync for Metadata<T>
impl<T> Unpin for Metadata<T>
impl<T> UnwindSafe for Metadata<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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