pub enum FieldKind<'a> {
Int(Unit),
Number(Unit),
Enum(&'a [&'a str]),
Flag,
}Expand description
The kind of a field. There is no string kind: a report carries no paths or text.
Variants§
Int(Unit)
An i64.
Number(Unit)
An f64; NaN and infinity are refused.
Enum(&'a [&'a str])
One of the options (1 to 32), by name.
Flag
False or true.
Trait Implementations§
impl<'a> Copy for FieldKind<'a>
impl<'a> Eq for FieldKind<'a>
impl<'a> StructuralPartialEq for FieldKind<'a>
Auto Trait Implementations§
impl<'a> Forget for FieldKind<'a>
impl<'a> Freeze for FieldKind<'a>
impl<'a> Move for FieldKind<'a>
impl<'a> RefUnwindSafe for FieldKind<'a>
impl<'a> Send for FieldKind<'a>
impl<'a> Sync for FieldKind<'a>
impl<'a> Unpin for FieldKind<'a>
impl<'a> UnsafeUnpin for FieldKind<'a>
impl<'a> UnwindSafe for FieldKind<'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