pub struct SubstitutionRule { /* private fields */ }Expand description
Match-and-substitute rule over exact link references.
Implementations§
Source§impl SubstitutionRule
impl SubstitutionRule
Sourcepub fn new<const P: usize, const R: usize>(
pattern: [LinkId; P],
replacement: [LinkId; R],
) -> Self
pub fn new<const P: usize, const R: usize>( pattern: [LinkId; P], replacement: [LinkId; R], ) -> Self
Creates a rule that replaces links with pattern references by
replacement references.
Trait Implementations§
Source§impl Clone for SubstitutionRule
impl Clone for SubstitutionRule
Source§fn clone(&self) -> SubstitutionRule
fn clone(&self) -> SubstitutionRule
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 SubstitutionRule
impl Debug for SubstitutionRule
impl Eq for SubstitutionRule
Source§impl PartialEq for SubstitutionRule
impl PartialEq for SubstitutionRule
Source§fn eq(&self, other: &SubstitutionRule) -> bool
fn eq(&self, other: &SubstitutionRule) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubstitutionRule
Auto Trait Implementations§
impl Freeze for SubstitutionRule
impl RefUnwindSafe for SubstitutionRule
impl Send for SubstitutionRule
impl Sync for SubstitutionRule
impl Unpin for SubstitutionRule
impl UnsafeUnpin for SubstitutionRule
impl UnwindSafe for SubstitutionRule
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