Struct polars::datatypes::Schema[][src]

pub struct Schema { /* fields omitted */ }

Implementations

impl Schema[src]

pub fn rename<I, J, T, S>(
    &self,
    old_names: I,
    new_names: J
) -> Result<Schema, PolarsError> where
    T: AsRef<str>,
    S: AsRef<str>,
    I: IntoIterator<Item = T>,
    J: IntoIterator<Item = S>, 
[src]

pub fn new(fields: Vec<Field, Global>) -> Schema[src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

pub fn fields(&self) -> &Vec<Field, Global>[src]

Returns an immutable reference of the vector of Field instances

pub fn field(&self, i: usize) -> Option<&Field>[src]

Returns an immutable reference of a specific Field instance selected using an offset within the internal fields vector

pub fn field_with_name(&self, name: &str) -> Result<&Field, PolarsError>[src]

Returns an immutable reference of a specific Field instance selected by name

pub fn index_of(&self, name: &str) -> Result<usize, PolarsError>[src]

Find the index of the column with the given name

pub fn to_arrow(&self) -> Schema[src]

pub fn try_merge(schemas: &[Schema]) -> Result<Schema, PolarsError>[src]

pub fn column_with_name(&self, name: &str) -> Option<(usize, &Field)>[src]

Trait Implementations

impl Clone for Schema[src]

impl Debug for Schema[src]

impl Default for Schema[src]

impl<'_> From<&'_ Schema> for Schema[src]

impl From<Schema> for Schema[src]

impl Hash for Schema[src]

impl PartialEq<Schema> for Schema[src]

impl StructuralPartialEq for Schema[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CallHasher for T where
    T: Hash + ?Sized

impl<T, U> Cast<U> for T where
    U: FromCast<T>, 

impl<T> From<T> for T[src]

impl<T> FromCast<T> for T

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,