pub enum Fresh {
Nothing,
Value(Value),
Made(Value),
Store,
}Expand description
What a value writes under a key of a map made just now
(Model::fresh): what can be made with that map in one batch is, so an
item made whole costs the batch, not an operation and a lookup per field.
Variants§
Nothing
Nothing: the key stays absent, as for an absent Option.
Value(Value)
This value, made with the map. A text in it is made with the marks
Model::store would set on it (a String field’s author).
Made(Value)
This value, made with the map too, whose Model::store writes into
it once the map is made: a rich text’s schema, which its body is
written into, goes in with the map holding it rather than as an
insert of its own. storing_made is true while that store writes.
Store
Written by Model::store once the map is made.
Implementations§
Auto Trait Implementations§
impl Forget for Fresh
impl Freeze for Freshwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
&'static str: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
PhantomData<(String, MapValue)>: Freeze,
PhantomData<ListValue>: Freeze,
PhantomData<SequenceTreeNode<ListValue>>: Freeze,
PhantomData<SequenceTreeNode<u8>>: Freeze,
PhantomData<u16>: Freeze,
PhantomData<SequenceTreeNode<u16>>: Freeze,
PhantomData<char>: Freeze,
PhantomData<SequenceTreeNode<char>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<SequenceTreeNode<String>>: Freeze,
PhantomData<(String, ScalarValue)>: Freeze,
PhantomData<(Mark, ExpandMark)>: Freeze,
impl Move for Fresh
impl RefUnwindSafe for Fresh
impl Send for Fresh
impl Sync for Fresh
impl Unpin for Fresh
impl UnsafeUnpin for Freshwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
&'static str: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
PhantomData<(String, MapValue)>: UnsafeUnpin,
PhantomData<ListValue>: UnsafeUnpin,
PhantomData<SequenceTreeNode<ListValue>>: UnsafeUnpin,
PhantomData<SequenceTreeNode<u8>>: UnsafeUnpin,
PhantomData<u16>: UnsafeUnpin,
PhantomData<SequenceTreeNode<u16>>: UnsafeUnpin,
PhantomData<char>: UnsafeUnpin,
PhantomData<SequenceTreeNode<char>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<SequenceTreeNode<String>>: UnsafeUnpin,
PhantomData<(String, ScalarValue)>: UnsafeUnpin,
PhantomData<(Mark, ExpandMark)>: UnsafeUnpin,
impl UnwindSafe for Freshwhere
RawVecInner: UnwindSafe,
&'static str: UnwindSafe,
Arc<str>: UnwindSafe,
HashMap<String, MapValue>: UnwindSafe,
HashMap<String, ScalarValue>: UnwindSafe,
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