pub struct ParseOption {
pub whitespace: WhitespaceStrategy,
pub preserve_comment: bool,
pub get_namespace: fn(&str, &Vec<Element<'_>>) -> Namespace,
pub get_text_mode: fn(&str) -> TextMode,
pub is_void_tag: fn(&str) -> bool,
pub is_pre_tag: fn(&str) -> bool,
pub is_custom_element: fn(&str) -> bool,
pub is_builtin_component: fn(&str) -> bool,
pub is_native_element: fn(&str) -> bool,
}
Fields§
§whitespace: WhitespaceStrategy
§preserve_comment: bool
§get_namespace: fn(&str, &Vec<Element<'_>>) -> Namespace
§get_text_mode: fn(&str) -> TextMode
§is_void_tag: fn(&str) -> bool
Returns if a tag is self closing.
is_pre_tag: fn(&str) -> bool
§is_custom_element: fn(&str) -> bool
Exposed to end user for customization like importing web-component from React.
is_builtin_component: fn(&str) -> bool
For platform developers. Registers platform specific components written in JS. e.g. transition, transition-group. Components that require code in Vue runtime.
is_native_element: fn(&str) -> bool
For platform developer. Registers platform components written in host language like C++.
Trait Implementations§
Source§impl Clone for ParseOption
impl Clone for ParseOption
Source§fn clone(&self) -> ParseOption
fn clone(&self) -> ParseOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ParseOption
impl RefUnwindSafe for ParseOption
impl Send for ParseOption
impl Sync for ParseOption
impl Unpin for ParseOption
impl UnwindSafe for ParseOption
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