[][src]Struct polars_core::datatypes::Schema

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> where
    I: IntoIterator<Item = T>,
    J: IntoIterator<Item = S>,
    T: AsRef<str>,
    S: AsRef<str>, 
[src]

pub fn new(fields: Vec<Field>) -> Self[src]

pub fn fields(&self) -> &Vec<Field>[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>[src]

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

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

Find the index of the column with the given name

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

pub fn try_merge(schemas: &[Self]) -> Result<Self>[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

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
[src]

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

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>,