pub struct Literal { /* private fields */ }
Implementations§
Source§impl Literal
impl Literal
pub fn from_url(url: String) -> Result<Self>
pub fn from_string(string: String) -> Self
pub fn from_number(number: f64) -> Self
pub fn from_json(json: Value) -> Self
pub fn to_url(&self) -> Result<String>
pub fn parse_url(&self) -> Result<LiteralValue>
pub fn get(&self) -> Result<LiteralValue>
pub fn convert(&mut self) -> Result<()>
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more