pub enum SubstitutionOp {
Append(Substitution),
Prepend(Substitution),
Remove(Substitution),
}Expand description
A substitution operation to apply to a default substitution list.
Used when the subs attribute contains modifier syntax (+quotes, -callouts, quotes+).
Only available when the pre-spec-subs feature is enabled — the draft
AsciiDoc spec is dropping the substitution model in favour of an inline
parsing grammar, so this type goes away with the feature.
Variants§
Append(Substitution)
+name - append substitution to end of default list
Prepend(Substitution)
name+ - prepend substitution to beginning of default list
Remove(Substitution)
-name - remove substitution from default list
Trait Implementations§
Source§impl Clone for SubstitutionOp
impl Clone for SubstitutionOp
Source§impl Debug for SubstitutionOp
impl Debug for SubstitutionOp
Source§impl Display for SubstitutionOp
Available on crate feature pre-spec-subs only.
impl Display for SubstitutionOp
Available on crate feature
pre-spec-subs only.impl Eq for SubstitutionOp
Source§impl Hash for SubstitutionOp
impl Hash for SubstitutionOp
Source§impl PartialEq for SubstitutionOp
impl PartialEq for SubstitutionOp
impl StructuralPartialEq for SubstitutionOp
Auto Trait Implementations§
impl Freeze for SubstitutionOp
impl RefUnwindSafe for SubstitutionOp
impl Send for SubstitutionOp
impl Sync for SubstitutionOp
impl Unpin for SubstitutionOp
impl UnsafeUnpin for SubstitutionOp
impl UnwindSafe for SubstitutionOp
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