pub enum CommentPosition {
Before,
FirstChild,
LastChild,
After,
Inline,
}
Expand description
Position of a comment relative to its parent element
Variants§
Before
Comment appears before the element’s opening tag
FirstChild
Comment appears after the element’s opening tag but before any child content
LastChild
Comment appears after the last child content but before the closing tag
After
Comment appears after the element’s closing tag
Inline
Comment appears inline with the element (for text-only elements)
Trait Implementations§
Source§impl Clone for CommentPosition
impl Clone for CommentPosition
Source§fn clone(&self) -> CommentPosition
fn clone(&self) -> CommentPosition
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 moreSource§impl Debug for CommentPosition
impl Debug for CommentPosition
Source§impl<'de> Deserialize<'de> for CommentPosition
impl<'de> Deserialize<'de> for CommentPosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CommentPosition
impl PartialEq for CommentPosition
Source§impl Serialize for CommentPosition
impl Serialize for CommentPosition
impl Copy for CommentPosition
impl StructuralPartialEq for CommentPosition
Auto Trait Implementations§
impl Freeze for CommentPosition
impl RefUnwindSafe for CommentPosition
impl Send for CommentPosition
impl Sync for CommentPosition
impl Unpin for CommentPosition
impl UnwindSafe for CommentPosition
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