pub enum Value<'a> {
Text(&'a str),
Resource(&'a str),
}Expand description
One value of a field, as a statement holds it: a text or a reference.
Variants§
Implementations§
Trait Implementations§
impl<'a> Copy for Value<'a>
impl<'a> Eq for Value<'a>
Source§impl<'a> Ord for Value<'a>
impl<'a> Ord for Value<'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 PartialEq<FieldValue> for Value<'_>
impl PartialEq<FieldValue> for Value<'_>
Source§impl<'a> PartialOrd for Value<'a>
impl<'a> PartialOrd for Value<'a>
impl<'a> StructuralPartialEq for Value<'a>
Auto Trait Implementations§
impl<'a> Forget for Value<'a>
impl<'a> Freeze for Value<'a>
impl<'a> Move for Value<'a>
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> Send for Value<'a>
impl<'a> Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnsafeUnpin for Value<'a>
impl<'a> UnwindSafe for Value<'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