pub enum FieldValueRef<'a> {
Text(&'a str),
I64(i64),
U64(u64),
Bool(bool),
Presence,
}Expand description
Borrowed value of a structured context field.
Variants§
Text(&'a str)
Bounded, normalized text.
I64(i64)
A signed integer.
U64(u64)
An unsigned integer.
Bool(bool)
A Boolean value.
Presence
A value-free presence marker.
Trait Implementations§
Source§impl<'a> Clone for FieldValueRef<'a>
impl<'a> Clone for FieldValueRef<'a>
impl<'a> Copy for FieldValueRef<'a>
Source§impl<'a> Debug for FieldValueRef<'a>
impl<'a> Debug for FieldValueRef<'a>
impl<'a> Eq for FieldValueRef<'a>
Source§impl<'a> Hash for FieldValueRef<'a>
impl<'a> Hash for FieldValueRef<'a>
Source§impl<'a> Ord for FieldValueRef<'a>
impl<'a> Ord for FieldValueRef<'a>
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<'a> PartialEq for FieldValueRef<'a>
impl<'a> PartialEq for FieldValueRef<'a>
Source§impl<'a> PartialOrd for FieldValueRef<'a>
impl<'a> PartialOrd for FieldValueRef<'a>
impl<'a> StructuralPartialEq for FieldValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for FieldValueRef<'a>
impl<'a> RefUnwindSafe for FieldValueRef<'a>
impl<'a> Send for FieldValueRef<'a>
impl<'a> Sync for FieldValueRef<'a>
impl<'a> Unpin for FieldValueRef<'a>
impl<'a> UnsafeUnpin for FieldValueRef<'a>
impl<'a> UnwindSafe for FieldValueRef<'a>
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