[−][src]Enum ion::Value
Variants
String(String)
Integer(i64)
Float(f64)
Boolean(bool)
Array(Row)
Dictionary(Dictionary)
Methods
impl Value
[src]
pub fn type_str(&self) -> &'static str
[src]
pub fn as_string(&self) -> Option<&String>
[src]
pub fn is_string(&self) -> bool
[src]
pub fn as_str(&self) -> Option<&str>
[src]
pub fn as_integer(&self) -> Option<i64>
[src]
pub fn as_float(&self) -> Option<f64>
[src]
pub fn as_boolean(&self) -> Option<bool>
[src]
pub fn as_array(&self) -> Option<&Vec<Value>>
[src]
pub fn as_dictionary(&self) -> Option<&Dictionary>
[src]
pub fn get(&self, name: &str) -> Option<&Value>
[src]
pub fn from_ion<F: FromIon<Value>>(&self) -> Result<F, F::Err>
[src]
convert to type F
using the FromIon
trait
pub fn parse<F: FromStr>(&self) -> Result<F, F::Err>
[src]
parse to the resulting type, if the inner value is not a string, convert to string first
Trait Implementations
impl FromIon<Value> for String
[src]
impl FromIon<Value> for Option<String>
[src]
impl FromIon<Value> for isize
[src]
impl FromIon<Value> for i8
[src]
impl FromIon<Value> for i16
[src]
impl FromIon<Value> for i32
[src]
impl FromIon<Value> for i64
[src]
impl FromIon<Value> for usize
[src]
impl FromIon<Value> for u8
[src]
impl FromIon<Value> for u16
[src]
impl FromIon<Value> for u32
[src]
impl FromIon<Value> for u64
[src]
impl FromIon<Value> for bool
[src]
impl PartialEq<Value> for Value
[src]
impl Clone for Value
[src]
fn clone(&self) -> Value
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> From<&'a Value> for String
[src]
impl Debug for Value
[src]
impl Display for Value
[src]
impl FromStr for Value
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,