pub struct RawTree {
pub name: String,
pub attributes: &'static EntityAttribute,
/* private fields */
}Fields§
§name: Stringcustom name (with_name fn) or Record::NAME
attributes: &'static EntityAttributeImplementations§
Source§impl RawTree
impl RawTree
pub fn checksum(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn count(&self) -> u64
pub fn subscribe(&self) -> Receiver<ChangeEvent>
pub fn hashpoints(&self) -> CheckSumVec
pub fn scan_group( &self, group: u32, ) -> impl DoubleEndedIterator<Item = KeyValue> + use<>
pub fn recalcucate_hash(&self) -> u64
Sourcepub fn get(&self, id: &[u8]) -> DbResult<Option<Vec<u8>>>
pub fn get(&self, id: &[u8]) -> DbResult<Option<Vec<u8>>>
return slice with [key + value] bytes
pub fn range( &self, range: (Bound<&[u8]>, Bound<&[u8]>), ) -> Box<dyn DoubleEndedIterator<Item = KeyValue>>
pub fn next_id(&self) -> DbResult<u64>
pub fn apply_event(&self, event: ChangeEvent) -> DbResult<()>
pub fn apply_batch( &self, iter: impl Iterator<Item = (ByteValue, Option<ByteValue>)>, ) -> DbResult<()>
Trait Implementations§
Source§impl<Item: Record> From<CollectionTree<Item>> for RawTree
impl<Item: Record> From<CollectionTree<Item>> for RawTree
Source§fn from(value: CollectionTree<Item>) -> Self
fn from(value: CollectionTree<Item>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for RawTree
impl !RefUnwindSafe for RawTree
impl Send for RawTree
impl !Sync for RawTree
impl Unpin for RawTree
impl !UnwindSafe for RawTree
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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