pub struct TableOverride { /* private fields */ }Expand description
User tables layered over a base model: a query for a pair some table declares goes to that table (so its range and mass checks apply, and it is never silently replaced by the base model); every other pair goes to the base model.
new does not check for duplicate pairs; the first matching table wins.
The CLI input layer rejects duplicates with a field-naming error.
Implementations§
Source§impl TableOverride
impl TableOverride
Sourcepub fn new(
tables: Vec<StoppingTable>,
base: Box<dyn ElectronicStopping + Send + Sync>,
) -> Self
pub fn new( tables: Vec<StoppingTable>, base: Box<dyn ElectronicStopping + Send + Sync>, ) -> Self
tables take precedence over base for the pairs they declare.
Trait Implementations§
Source§impl Debug for TableOverride
impl Debug for TableOverride
Source§impl ElectronicStopping for TableOverride
impl ElectronicStopping for TableOverride
Source§fn validity(&self, ion: &Ion) -> ValidityRange
fn validity(&self, ion: &Ion) -> ValidityRange
The base model’s advisory range; a table’s own range is enforced as an error at query time instead.
Auto Trait Implementations§
impl !RefUnwindSafe for TableOverride
impl !UnwindSafe for TableOverride
impl Freeze for TableOverride
impl Send for TableOverride
impl Sync for TableOverride
impl Unpin for TableOverride
impl UnsafeUnpin for TableOverride
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