[−][src]Struct tablam::schema::Schema
Fields
pk: Option<usize>
fields: Vec<Field>
Implementations
impl Schema
[src]
pub fn new(fields: Vec<Field>, pk: Option<usize>) -> Self
[src]
pub fn new_single(name: &str, kind: DataType) -> Self
[src]
pub fn scalar_field(kind: DataType) -> Self
[src]
pub fn named(&self, name: &str) -> Option<(usize, &Field)>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn pk_field(&self) -> Option<Field>
[src]
pub fn resolve_name(&self, of: &Column) -> (usize, Field)
[src]
pub fn resolve_pos(&self, of: &Column) -> usize
[src]
Recover the column position from the relative ColumnName
pub fn resolve_pos_many(&self, of: &[Column]) -> Pos
[src]
pub fn pick_new_pk(&mut self, old: Option<Field>)
[src]
pub fn extend(&self, right: &Schema) -> Self
[src]
pub fn project(&self, select: &ProjectDef) -> (Schema, Pos)
[src]
pub fn kind(&self) -> Vec<DataType>
[src]
Trait Implementations
impl Clone for Schema
[src]
impl Debug for Schema
[src]
impl Display for Schema
[src]
impl Eq for Schema
[src]
impl Hash for Schema
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<usize> for Schema
[src]
impl Ord for Schema
[src]
fn cmp(&self, other: &Schema) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Schema> for Schema
[src]
impl PartialOrd<Schema> 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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,