pub struct Parsed { /* private fields */ }Implementations§
Source§impl Parsed
impl Parsed
Sourcepub fn new(
source: Arc<str>,
file_path: Option<Arc<Path>>,
syntax: &Syntax<'_>,
) -> Result<Self, ParseError>
pub fn new( source: Arc<str>, file_path: Option<Arc<Path>>, syntax: &Syntax<'_>, ) -> Result<Self, ParseError>
If file_path is None, it means the source is an inline template. Therefore, if
a parsing error occurs, we won’t display the path as it wouldn’t be useful.
pub fn nodes(&self) -> &[Box<Node<'_>>]
pub fn source(&self) -> &str
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parsed
impl RefUnwindSafe for Parsed
impl Send for Parsed
impl Sync for Parsed
impl Unpin for Parsed
impl UnwindSafe for Parsed
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