pub enum CalloutGuard<'a> {
LineComment(&'a str),
Xml,
}Expand description
Describes the characters that guard (hide) a callout number in verbatim source.
Variants§
LineComment(&'a str)
A line-comment (or absent) guard. Holds the line-comment prefix that
precedes the callout in the source (e.g. # ), or an empty string when
the callout is not tucked behind a line comment. When icons are not
enabled, the prefix is preserved ahead of the rendered callout number.
Xml
An XML comment guard (<!--N-->). When icons are not enabled, the XML
comment delimiters are preserved around the rendered callout number.
Trait Implementations§
Source§impl<'a> Clone for CalloutGuard<'a>
impl<'a> Clone for CalloutGuard<'a>
Source§fn clone(&self) -> CalloutGuard<'a>
fn clone(&self) -> CalloutGuard<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CalloutGuard<'a>
impl<'a> Debug for CalloutGuard<'a>
impl<'a> Eq for CalloutGuard<'a>
Source§impl<'a> PartialEq for CalloutGuard<'a>
impl<'a> PartialEq for CalloutGuard<'a>
Source§fn eq(&self, other: &CalloutGuard<'a>) -> bool
fn eq(&self, other: &CalloutGuard<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for CalloutGuard<'a>
Auto Trait Implementations§
impl<'a> Freeze for CalloutGuard<'a>
impl<'a> RefUnwindSafe for CalloutGuard<'a>
impl<'a> Send for CalloutGuard<'a>
impl<'a> Sync for CalloutGuard<'a>
impl<'a> Unpin for CalloutGuard<'a>
impl<'a> UnsafeUnpin for CalloutGuard<'a>
impl<'a> UnwindSafe for CalloutGuard<'a>
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