Enum webdriver::common::Nullable
[−]
[src]
pub enum Nullable<T: ToJson> { Value(T), Null, }
Variants
Value(T)
Null
Methods
impl<T: ToJson> Nullable<T>
[src]
fn is_null(&self) -> bool
fn is_value(&self) -> bool
fn map<F, U: ToJson>(self, f: F) -> Nullable<U> where F: FnOnce(T) -> U
impl<T: ToJson> Nullable<T>
[src]
fn from_json<F: FnOnce(&Json) -> WebDriverResult<T>>(value: &Json,
f: F)
-> WebDriverResult<Nullable<T>>
f: F)
-> WebDriverResult<Nullable<T>>
Trait Implementations
impl<T: PartialEq + ToJson> PartialEq for Nullable<T>
[src]
fn eq(&self, __arg_0: &Nullable<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Nullable<T>) -> bool
This method tests for !=
.
impl<T: Clone + ToJson> Clone for Nullable<T>
[src]
fn clone(&self) -> Nullable<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more