Enum scraper_main::Value
source · Variants
Boolean(bool)
Number(f64)
String(String)
Node(Node)
Implementations
sourceimpl Value
impl Value
pub fn is_something(&self) -> bool
pub fn as_node(&self) -> Result<&Node, Error>
pub fn is_node(&self) -> bool
pub fn into_node(self) -> Result<Node, Error>
pub fn boolean(&self) -> Result<bool, Error>
pub fn number(&self) -> Result<f64, Error>
pub fn as_string(&self) -> Result<&String, Error>
pub fn string(self) -> Result<String, Error>
sourcepub fn convert_to_string(self) -> Result<String, Error>
pub fn convert_to_string(self) -> Result<String, Error>
Change non-string Value to a String
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Value
impl !Send for Value
impl !Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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