pub enum Value<'a> {
Octets(&'a [u8]),
Oid(Oid<'a>),
Utf8(&'a str),
}Expand description
One borrowed, validated value; no allocating or lossy text projection.
Variants§
Octets(&'a [u8])
Original octet contents, including empty octets.
Oid(Oid<'a>)
Original identifier octets, without a decimal string conversion.
Utf8(&'a str)
Original UTF-8 text, including empty text.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze 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