[][src]Struct cborian::value::Cursor

pub struct Cursor<'r> { /* fields omitted */ }

A Cursor allows convenient navigation in a Value AST. Values can be converted to native Rust types if possible and collections can be traversed using at or get.

Implementations

impl<'r> Cursor<'r>[src]

pub fn new(v: &'r Value) -> Cursor<'r>[src]

pub fn at(&self, i: usize) -> Cursor<'r>[src]

pub fn get(&self, k: Key) -> Cursor<'r>[src]

pub fn field(&self, s: &str) -> Cursor<'r>[src]

pub fn value(&self) -> Option<&Value>[src]

pub fn opt(&self) -> Option<Cursor<'r>>[src]

pub fn maybe(&self) -> Option<Cursor<'r>>[src]

pub fn bool(&self) -> Option<bool>[src]

pub fn bytes(&self) -> Option<&Bytes>[src]

pub fn bytes_plain(&self) -> Option<&Vec<u8>>[src]

pub fn bytes_chunked(&self) -> Option<&LinkedList<Vec<u8>>>[src]

pub fn text(&self) -> Option<&Text>[src]

pub fn text_plain(&self) -> Option<&String>[src]

pub fn text_chunked(&self) -> Option<&LinkedList<String>>[src]

pub fn float32(&self) -> Option<f32>[src]

pub fn float64(&self) -> Option<f64>[src]

pub fn u8(&self) -> Option<u8>[src]

pub fn u16(&self) -> Option<u16>[src]

pub fn u32(&self) -> Option<u32>[src]

pub fn u64(&self) -> Option<u64>[src]

pub fn i8(&self) -> Option<i8>[src]

pub fn i16(&self) -> Option<i16>[src]

pub fn i32(&self) -> Option<i32>[src]

pub fn i64(&self) -> Option<i64>[src]

Auto Trait Implementations

impl<'r> RefUnwindSafe for Cursor<'r>[src]

impl<'r> Send for Cursor<'r>[src]

impl<'r> Sync for Cursor<'r>[src]

impl<'r> Unpin for Cursor<'r>[src]

impl<'r> UnwindSafe for Cursor<'r>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,