Enum matterdb::generic::GenericRawAccess [−][src]
Container for an arbitrary raw access. For Fork
s and Snapshot
s, this type provides
both owned and borrowed variants.
GenericRawAccess
implements RawAccess
and RawAccessMut
traits. The latter
means that the mutable methods on indexes will panic in the run time if an immutable access
(such as a Snapshot
) is used as the base. The caller is advised to check
mutability in advance with the help of is_mutable()
.
Variants (Non-exhaustive)
Snapshot(&'a dyn Snapshot)
Borrowed snapshot.
Owned snapshot.
Fork(&'a Fork)
Borrowed fork.
Owned fork.
ReadonlyFork(ReadonlyFork<'a>)
Readonly fork.
OwnedReadonlyFork(OwnedReadonlyFork)
Owned readonly fork.
Implementations
impl GenericRawAccess<'_>
[src]
pub fn is_mutable(&self) -> bool
[src]
Checks if the underlying access is mutable.
Trait Implementations
impl AsReadonly for GenericRawAccess<'_>
[src]
impl<'a> Clone for GenericRawAccess<'a>
[src]
fn clone(&self) -> GenericRawAccess<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for GenericRawAccess<'a>
[src]
impl<'a> From<&'a (dyn Snapshot + 'static)> for GenericRawAccess<'a>
[src]
impl<'a> From<&'a Fork> for GenericRawAccess<'a>
[src]
impl From<Box<dyn Snapshot + 'static, Global>> for GenericRawAccess<'_>
[src]
impl From<Fork> for GenericRawAccess<'_>
[src]
impl From<OwnedReadonlyFork> for GenericRawAccess<'_>
[src]
fn from(ro_fork: OwnedReadonlyFork) -> Self
[src]
impl<'a> From<ReadonlyFork<'a>> for GenericRawAccess<'a>
[src]
fn from(ro_fork: ReadonlyFork<'a>) -> Self
[src]
impl<'a> RawAccess for GenericRawAccess<'a>
[src]
type Changes = GenericChanges<'a>
Type of the changes()
that will be applied to the database.
fn snapshot(&self) -> &dyn Snapshot
[src]
fn changes(&self, address: &ResolvedAddress) -> Self::Changes
[src]
impl RawAccessMut for GenericRawAccess<'_>
[src]
Will panic in runtime if mutable methods are called on an inappropriate underlying access.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GenericRawAccess<'a>
impl<'a> !Send for GenericRawAccess<'a>
impl<'a> !Sync for GenericRawAccess<'a>
impl<'a> Unpin for GenericRawAccess<'a>
impl<'a> !UnwindSafe for GenericRawAccess<'a>
Blanket Implementations
impl<T> Access for T where
T: RawAccess,
[src]
T: RawAccess,
type Base = T
Raw access serving as the basis for created indexes.
pub fn get_index_metadata(
Self,
IndexAddress
) -> Result<Option<IndexMetadata<Vec<u8, Global>>>, AccessError>
[src]
Self,
IndexAddress
) -> Result<Option<IndexMetadata<Vec<u8, Global>>>, AccessError>
pub fn get_or_create_view(
Self,
IndexAddress,
IndexType
) -> Result<ViewWithMetadata<<T as Access>::Base>, AccessError>
[src]
Self,
IndexAddress,
IndexType
) -> Result<ViewWithMetadata<<T as Access>::Base>, AccessError>
pub fn group_keys<K>(Self, IndexAddress) -> GroupKeys<<T as Access>::Base, K> where
K: BinaryKey + ?Sized,
<T as Access>::Base: AsReadonly,
<<T as Access>::Base as AsReadonly>::Readonly == <T as Access>::Base,
[src]
K: BinaryKey + ?Sized,
<T as Access>::Base: AsReadonly,
<<T as Access>::Base as AsReadonly>::Readonly == <T as Access>::Base,
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> From<T> for T
[src]
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>,