[][src]Struct json_peek::value::Item

pub struct Item<T> {
    pub span: Span,
    pub value: T,
}

Fields

span: Spanvalue: T

Methods

impl<T> Item<T>[src]

pub const fn new(span: Span, value: T) -> Item<T>[src]

pub fn span(&self) -> Span[src]

impl Item<String>[src]

pub fn new_literal(value: impl Into<String>) -> Self[src]

impl Item<String>[src]

pub fn new_number(value: String) -> Self[src]

impl Item<Vec<Value>>[src]

pub fn new_array(value: Vec<Value>) -> Self[src]

impl Item<bool>[src]

pub fn new_bool(value: bool) -> Self[src]

impl Item<()>[src]

pub fn new_null() -> Self[src]

impl Item<HashMap<Item<String>, Value, RandomState>>[src]

pub fn new_object(value: HashMap<Literal, Value>) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Item<T>[src]

impl<T: Copy> Copy for Item<T>[src]

impl<T: Debug> Debug for Item<T>[src]

impl<T: PartialEq> Eq for Item<T>[src]

impl<T: Hash> Hash for Item<T>[src]

impl<T: PartialEq> PartialEq<Item<T>> for Item<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Item<T> where
    T: RefUnwindSafe

impl<T> Send for Item<T> where
    T: Send

impl<T> Sync for Item<T> where
    T: Sync

impl<T> Unpin for Item<T> where
    T: Unpin

impl<T> UnwindSafe for Item<T> where
    T: UnwindSafe

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.