pub struct Highlight<'a> {
pub role: Option<Role<'a>>,
pub id: Option<&'a str>,
pub form: Form,
pub content: Vec<InlineNode<'a>>,
pub location: Location,
}Expand description
A Highlight represents a highlighted section of text in a document.
Fields§
§role: Option<Role<'a>>§id: Option<&'a str>§form: Form§content: Vec<InlineNode<'a>>§location: LocationTrait Implementations§
impl<'a> StructuralPartialEq for Highlight<'a>
Auto Trait Implementations§
impl<'a> Freeze for Highlight<'a>
impl<'a> RefUnwindSafe for Highlight<'a>
impl<'a> Send for Highlight<'a>
impl<'a> Sync for Highlight<'a>
impl<'a> Unpin for Highlight<'a>
impl<'a> UnsafeUnpin for Highlight<'a>
impl<'a> UnwindSafe for Highlight<'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