pub struct BlockReplacement<'a> {
pub block: &'a Block,
pub char_start: i64,
pub char_end: i64,
pub replacement: &'a str,
}Expand description
One replacement replace_in_blocks makes: [char_start..char_end) of block’s text, in
the block’s own positions (an image or a footnote reference counts one), replaced by
replacement.
Fields§
§block: &'a Block§char_start: i64§char_end: i64§replacement: &'a strTrait Implementations§
Source§impl<'a> Clone for BlockReplacement<'a>
impl<'a> Clone for BlockReplacement<'a>
impl<'a> Copy for BlockReplacement<'a>
Auto Trait Implementations§
impl<'a> Freeze for BlockReplacement<'a>
impl<'a> RefUnwindSafe for BlockReplacement<'a>
impl<'a> Send for BlockReplacement<'a>
impl<'a> Sync for BlockReplacement<'a>
impl<'a> Unpin for BlockReplacement<'a>
impl<'a> UnsafeUnpin for BlockReplacement<'a>
impl<'a> UnwindSafe for BlockReplacement<'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