[−][src]Struct polars_core::datatypes::Schema
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]
I: IntoIterator<Item = T>,
J: IntoIterator<Item = S>,
T: AsRef<str>,
S: AsRef<str>,
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]
fn from(a_schema: &ArrowSchema) -> Self
[src]
impl From<Schema> for Schema
[src]
fn from(a_schema: ArrowSchema) -> Self
[src]
impl Hash for Schema
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Schema> for Schema
[src]
impl StructuralPartialEq for Schema
[src]
Auto Trait Implementations
impl RefUnwindSafe for Schema
[src]
impl Send for Schema
[src]
impl Sync for Schema
[src]
impl Unpin for Schema
[src]
impl UnwindSafe for Schema
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> CallHasher for T where
T: Hash,
[src]
T: Hash,
impl<T> CallHasher for T where
T: Hash + ?Sized,
[src]
T: Hash + ?Sized,
impl<T, U> Cast<U> for T where
U: FromCast<T>,
U: FromCast<T>,
pub fn cast(self) -> U
impl<T> From<T> for T
[src]
impl<T> FromCast<T> for T
pub fn from_cast(t: T) -> T
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,