pub struct Value<'a, 'd> { /* private fields */ }Expand description
One present field borrowed together with its unchanged backing input. Its validated kind and retained range survive every projection through this borrow.
Implementations§
Source§impl<'a, 'd> Value<'a, 'd>
impl<'a, 'd> Value<'a, 'd>
pub fn is_null(&self) -> bool
pub fn u64(&self) -> Result<u64, Error>
pub fn i64(&self) -> Result<i64, Error>
pub fn boolean(&self) -> Result<bool, Error>
pub fn frame(&self) -> Result<Text<Shared>, Error>
pub fn plain(&self) -> Result<Plain<Shared>, Error>
pub fn raw(&self) -> Result<Raw<Shared>, Error>
pub fn inline_plain<const N: usize>(&self) -> Result<Plain<Token<N>>, Error>
pub fn inline_raw<const N: usize>(&self) -> Result<Raw<Token<N>>, Error>
Auto Trait Implementations§
impl<'a, 'd> !RefUnwindSafe for Value<'a, 'd>
impl<'a, 'd> !Send for Value<'a, 'd>
impl<'a, 'd> !Sync for Value<'a, 'd>
impl<'a, 'd> !UnwindSafe for Value<'a, 'd>
impl<'a, 'd> Forget for Value<'a, 'd>
impl<'a, 'd> Freeze for Value<'a, 'd>
impl<'a, 'd> Unpin for Value<'a, 'd>
impl<'a, 'd> UnsafeUnpin for Value<'a, 'd>
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