pub struct GrannyFile {
pub root_elements: Vec<Element>,
}Fields§
§root_elements: Vec<Element>Implementations§
Source§impl GrannyFile
impl GrannyFile
pub fn load_from_file(path: &str) -> Option<GrannyFile>
pub fn load_from_bytes(bytes: &[u8]) -> Option<GrannyFile>
pub fn find_element(&self, path: &str) -> Option<&Element>
Auto Trait Implementations§
impl Freeze for GrannyFile
impl RefUnwindSafe for GrannyFile
impl Send for GrannyFile
impl Sync for GrannyFile
impl Unpin for GrannyFile
impl UnwindSafe for GrannyFile
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