pub struct Schema { /* private fields */ }
Implementations
sourceimpl Schema
impl Schema
pub fn try_from_fallible<I>(flds: I) -> Result<Schema, PolarsError> where
I: IntoIterator<Item = Result<Field, PolarsError>>,
pub fn new() -> Schema
pub fn with_capacity(capacity: usize) -> Schema
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn rename(&mut self, old: &str, new: String) -> Option<()>
pub fn insert_index(
&self,
index: usize,
name: String,
dtype: DataType
) -> Option<Schema>
pub fn get(&self, name: &str) -> Option<&DataType>
pub fn get_full(&self, name: &str) -> Option<(usize, &String, &DataType)>
pub fn get_field(&self, name: &str) -> Option<Field>
pub fn get_index(&self, index: usize) -> Option<(&String, &DataType)>
pub fn coerce_by_name(&mut self, name: &str, dtype: DataType) -> Option<()>
pub fn coerce_by_index(&mut self, index: usize, dtype: DataType) -> Option<()>
pub fn with_column(&mut self, name: String, dtype: DataType)
pub fn merge(&mut self, other: Schema)
pub fn to_arrow(&self) -> Schema
pub fn iter_fields(&self) -> impl Iterator<Item = Field>
pub fn iter_dtypes(&self) -> impl Iterator<Item = &DataType>
pub fn iter_names(&self) -> impl Iterator<Item = &String> + ExactSizeIterator
pub fn iter(&self) -> impl Iterator<Item = (&String, &DataType)>
Trait Implementations
sourceimpl IndexOfSchema for Schema
impl IndexOfSchema for Schema
impl Eq for Schema
impl StructuralEq for Schema
impl StructuralPartialEq for Schema
Auto Trait Implementations
impl RefUnwindSafe for Schema
impl Send for Schema
impl Sync for Schema
impl Unpin for Schema
impl UnwindSafe for Schema
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more