pub enum AeonValue {
Nil,
Bool(bool),
String(String),
Integer(i64),
Double(f64),
Map(HashMap<String, AeonValue>),
List(Vec<AeonValue>),
Ip(IpAddr),
}
Variants
Nil
Bool(bool)
String(String)
Integer(i64)
Double(f64)
Map(HashMap<String, AeonValue>)
List(Vec<AeonValue>)
Ip(IpAddr)
Trait Implementations
sourceimpl AeonConvert for AeonValue
impl AeonConvert for AeonValue
fn nil(self) -> bool
fn bool(self) -> Option<bool>
fn str(self) -> Option<String>
fn int(self) -> Option<i64>
fn double(self) -> Option<f64>
fn ip(self) -> Option<IpAddr>
fn ip_str(self) -> Option<String>
fn map(self) -> Option<HashMap<String, AeonValue>>
fn list(self) -> Option<Vec<AeonValue>>
fn get(&self, prop: &str) -> Option<AeonValue>
fn remove(&mut self, prop: &str) -> Option<AeonValue>
sourceimpl AeonConvert for AeonValue
impl AeonConvert for AeonValue
fn nil(self) -> bool
fn bool(self) -> bool
fn str(self) -> String
fn int(self) -> i64
fn double(self) -> f64
fn ip(self) -> IpAddr
fn ip_str(self) -> String
fn map(self) -> HashMap<String, AeonValue>
fn list(self) -> Vec<AeonValue>
fn get(&self, prop: &str) -> AeonValue
fn remove(&mut self, prop: &str) -> AeonValue
Auto Trait Implementations
impl RefUnwindSafe for AeonValue
impl Send for AeonValue
impl Sync for AeonValue
impl Unpin for AeonValue
impl UnwindSafe for AeonValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more