pub struct ParseCore { /* private fields */ }
Implementations§
Source§impl ParseCore
impl ParseCore
pub fn template(&self) -> Option<&String>
pub fn script(&self) -> Option<&Script>
pub fn style(&self) -> Option<&String>
pub fn has_template(&self) -> (bool, bool)
pub fn has_script(&self) -> (bool, bool)
pub fn has_style(&self) -> (bool, bool)
pub fn set_template_directly(&mut self, template: String)
pub fn set_script_directly(&mut self, script: &Script)
pub fn set_style_directly(&mut self, style: String)
pub fn set_template(&mut self, template: &str)
pub fn set_script( &mut self, content: &str, lang: Option<String>, ) -> Result<(), Error>
pub fn set_style(&mut self, style: &str)
pub fn has(&self) -> (bool, bool, bool)
pub fn target_strategy(&self) -> Strategy
Trait Implementations§
Source§impl From<ParseCore> for ParseTarget
impl From<ParseCore> for ParseTarget
Source§impl From<ParseResult> for ParseCore
impl From<ParseResult> for ParseCore
Source§fn from(value: ParseResult) -> Self
fn from(value: ParseResult) -> Self
Converts to this type from the input type.
Source§impl From<ParseTarget> for ParseCore
impl From<ParseTarget> for ParseCore
Source§fn from(value: ParseTarget) -> Self
fn from(value: ParseTarget) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ParseCore> for ParseResult
impl TryFrom<ParseCore> for ParseResult
impl StructuralPartialEq for ParseCore
Auto Trait Implementations§
impl Freeze for ParseCore
impl RefUnwindSafe for ParseCore
impl !Send for ParseCore
impl !Sync for ParseCore
impl Unpin for ParseCore
impl UnwindSafe for ParseCore
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