pub struct ModelTable {
pub checks: bool,
pub has_ops: bool,
pub scalar: bool,
/* private fields */
}Expand description
A model type as data: its erased Model functions, what it is (a
record’s fields), and what it holds (a collection’s items).
Fields§
§checks: boolIts Model::CHECKS.
has_ops: boolIts Model::OPS.
scalar: boolIts Model::SCALAR.
Implementations§
Source§impl ModelTable
impl ModelTable
Sourcepub const fn of_collection(
collection: &'static CollectionDesc,
checks: bool,
has_ops: bool,
) -> Self
pub const fn of_collection( collection: &'static CollectionDesc, checks: bool, has_ops: bool, ) -> Self
The table of a collection.
Source§impl ModelTable
impl ModelTable
Sourcepub const fn of_resource(record: &'static ResourceDesc) -> Self
pub const fn of_resource(record: &'static ResourceDesc) -> Self
The table of the record record.
Source§impl ModelTable
impl ModelTable
Auto Trait Implementations§
impl Forget for ModelTable
impl Freeze for ModelTable
impl Move for ModelTable
impl RefUnwindSafe for ModelTable
impl Send for ModelTable
impl Sync for ModelTable
impl Unpin for ModelTable
impl UnsafeUnpin for ModelTable
impl UnwindSafe for ModelTable
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> 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