pub enum Crossing {
Stays,
Crosses,
HeldByOption,
}Expand description
Whether a type crosses a boundary, which refuses an Option<json.Value>
part, since None and Some(Null) would be written the same way
(tools.md, Runtime-shaped data). Each variant asks more than the one
before it.
Variants§
Stays
It stays inside the run, so it may hold anything data may.
Crosses
It crosses, so it has no Option<json.Value> part.
HeldByOption
An Option of it crosses, so it is not json.Value either. The walk
reaches this level under each such Option, and a type parameter
reached there is reported with it.
Trait Implementations§
impl Copy for Crossing
impl Eq for Crossing
Source§impl Ord for Crossing
impl Ord for Crossing
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Crossing
impl PartialOrd for Crossing
impl StructuralPartialEq for Crossing
Auto Trait Implementations§
impl Forget for Crossing
impl Freeze for Crossing
impl Move for Crossing
impl RefUnwindSafe for Crossing
impl Send for Crossing
impl Sync for Crossing
impl Unpin for Crossing
impl UnsafeUnpin for Crossing
impl UnwindSafe for Crossing
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