pub enum KeyDomain {
DenseInteger {
start: i128,
step: i128,
count: u64,
},
Deterministic {
count: u64,
generator: Box<dyn RandomAccessKeyGenerator>,
},
Composite {
count: u64,
components: Vec<Box<dyn RandomAccessKeyGenerator>>,
},
Nullable(Box<KeyDomain>),
}Expand description
A reproducible domain of parent keys a child references, addressable by parent row index without storing every key.
Variants§
DenseInteger
A contiguous integer sequence start, start+step, …, count rows long.
Fields
Deterministic
A single random-access key column (e.g. a seeded UUID/semantic key).
Fields
§
generator: Box<dyn RandomAccessKeyGenerator>Reproduces any parent row’s key on demand.
Composite
A composite key: one parent row index yields every component. Selection chooses the index once; each component is derived from that same index.
Fields
§
components: Vec<Box<dyn RandomAccessKeyGenerator>>One generator per key component, in parent-column order.
Nullable(Box<KeyDomain>)
A key domain whose value may be NULL (a nullable referenced key).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KeyDomain
impl !Sync for KeyDomain
impl !UnwindSafe for KeyDomain
impl Freeze for KeyDomain
impl Send for KeyDomain
impl Unpin for KeyDomain
impl UnsafeUnpin for KeyDomain
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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