pub struct OptionDecl {
pub name: Option<SmolStr>,
pub range: TextRange,
}Expand description
A \DeclareOption{name}{code} declaration, or the starred default handler
\DeclareOption*{code} (with name None).
Fields§
§name: Option<SmolStr>The declared option name, or None for the \DeclareOption* default handler.
range: TextRangeThe \DeclareOption control-word token range.
Trait Implementations§
Source§impl Clone for OptionDecl
impl Clone for OptionDecl
Source§fn clone(&self) -> OptionDecl
fn clone(&self) -> OptionDecl
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 Debug for OptionDecl
impl Debug for OptionDecl
impl Eq for OptionDecl
Source§impl PartialEq for OptionDecl
impl PartialEq for OptionDecl
impl StructuralPartialEq for OptionDecl
Auto Trait Implementations§
impl Freeze for OptionDecl
impl RefUnwindSafe for OptionDecl
impl Send for OptionDecl
impl Sync for OptionDecl
impl Unpin for OptionDecl
impl UnsafeUnpin for OptionDecl
impl UnwindSafe for OptionDecl
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