pub struct Tree {
pub schema: Schema,
/* private fields */
}
Fields§
§schema: Schema
Implementations§
Source§impl Tree
impl Tree
pub fn new(schema: Schema, data: BTreeSet<RowPk>) -> Self
pub fn empty(schema: Schema) -> Self
pub fn from_iter<'a, T>( schema: Schema, xs: impl Iterator<Item = Vec<T>>, ) -> Self
pub fn rows_iter(&self) -> impl Iterator<Item = Tuple> + '_
pub fn col_iter(&self, col: usize) -> impl Iterator<Item = Tuple> + '_
Trait Implementations§
Source§impl Ord for Tree
impl Ord for Tree
Source§impl PartialOrd for Tree
impl PartialOrd for Tree
Source§impl Rel for Tree
impl Rel for Tree
fn type_name(&self) -> &str
fn kind(&self) -> DataType
fn schema(&self) -> Schema
fn len(&self) -> usize
fn cols(&self) -> usize
fn rows(&self) -> Option<usize>
fn as_any(&self) -> &dyn Any
fn rel_shape(&self) -> RelShape
fn rel_hash(&self, hasher: &mut dyn Hasher)
fn rel_eq(&self, other: &dyn Rel) -> bool
fn rel_cmp(&self, other: &dyn Rel) -> Ordering
fn is_empty(&self) -> bool
fn is_scalar(&self) -> bool
fn query(&self) -> QueryOp
impl Eq for Tree
impl StructuralPartialEq for Tree
Auto Trait Implementations§
impl Freeze for Tree
impl !RefUnwindSafe for Tree
impl !Send for Tree
impl !Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more