pub struct Element<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Element<'a>
impl<'a> Element<'a>
pub fn new(ptr: NonNull<SJ_DOM_element>) -> Self
pub fn get_type(&self) -> ElementType
pub fn get_array(&self) -> Result<Array<'_>>
pub fn get_object(&self) -> Result<Object<'_>>
pub fn get_string(&self) -> Result<&'a str>
pub fn get_int64(&self) -> Result<i64>
pub fn get_uint64(&self) -> Result<u64>
pub fn get_double(&self) -> Result<f64>
pub fn get_bool(&self) -> Result<bool>
pub fn at_pointer(&self, json_pointer: &str) -> Result<Element<'_>>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Element<'a>
impl<'a> RefUnwindSafe for Element<'a>
impl<'a> !Send for Element<'a>
impl<'a> !Sync for Element<'a>
impl<'a> Unpin for Element<'a>
impl<'a> UnwindSafe for Element<'a>
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