Struct polars::datatypes::Schema [−][src]
pub struct Schema { /* fields omitted */ }
Implementations
impl Schema
[src]
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]
&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>,
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]
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]
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]
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]
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 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T, U> Cast<U> for T where
U: FromCast<T>,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
pub fn cast(self) -> U
pub fn cast(self) -> U
Numeric cast from self
to T
.
impl<T> FromCast<T> for T
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
pub fn from_cast(t: T) -> T
Numeric cast from T
to Self
.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,