Struct pcd_rs::metas::Schema[][src]

pub struct Schema {
    pub fields: Vec<FieldDef>,
}

Define the schema of PCD format.

Fields

fields: Vec<FieldDef>

Implementations

impl Schema[src]

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

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

pub fn iter(&self) -> Iter<'_, FieldDef>[src]

Trait Implementations

impl Clone for Schema[src]

fn clone(&self) -> Schema[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Schema[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<'a> FromIterator<&'a FieldDef> for Schema[src]

fn from_iter<T: IntoIterator<Item = &'a FieldDef>>(iter: T) -> Self[src]

Creates a value from an iterator. Read more

impl<'a> FromIterator<(&'a str, ValueKind, u64)> for Schema[src]

fn from_iter<T: IntoIterator<Item = (&'a str, ValueKind, u64)>>(iter: T) -> Self[src]

Creates a value from an iterator. Read more

impl FromIterator<(String, ValueKind, u64)> for Schema[src]

fn from_iter<T: IntoIterator<Item = (String, ValueKind, u64)>>(iter: T) -> Self[src]

Creates a value from an iterator. Read more

impl FromIterator<FieldDef> for Schema[src]

fn from_iter<T: IntoIterator<Item = FieldDef>>(iter: T) -> Self[src]

Creates a value from an iterator. Read more

impl Index<usize> for Schema[src]

type Output = FieldDef

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl IntoIterator for Schema[src]

type Item = FieldDef

The type of the elements being iterated over.

type IntoIter = IntoIter<FieldDef>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl<'a> IntoIterator for &'a Schema[src]

type Item = &'a FieldDef

The type of the elements being iterated over.

type IntoIter = Iter<'a, FieldDef>

Which kind of iterator are we turning this into?

fn into_iter(self) -> Self::IntoIter[src]

Creates an iterator from a value. Read more

impl PartialEq<Schema> for Schema[src]

fn eq(&self, other: &Schema) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Schema) -> bool[src]

This method tests for !=.

impl Eq for Schema[src]

impl StructuralEq 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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

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]

🔬 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<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.