pub struct NoExpandBytes<'t>(pub &'t [u8]);Expand description
A byte replacement that is inserted exactly as given, with no $
expansion. The byte counterpart of NoExpand.
Tuple Fields§
§0: &'t [u8]Trait Implementations§
Source§impl<'t> Clone for NoExpandBytes<'t>
impl<'t> Clone for NoExpandBytes<'t>
impl<'t> Copy for NoExpandBytes<'t>
Source§impl<'t> Debug for NoExpandBytes<'t>
impl<'t> Debug for NoExpandBytes<'t>
impl<'t> Eq for NoExpandBytes<'t>
Source§impl<'t> PartialEq for NoExpandBytes<'t>
impl<'t> PartialEq for NoExpandBytes<'t>
Source§impl ReplacerBytes for NoExpandBytes<'_>
impl ReplacerBytes for NoExpandBytes<'_>
Source§fn replace_append(&mut self, _caps: &Captures<'_>, dst: &mut Vec<u8>)
fn replace_append(&mut self, _caps: &Captures<'_>, dst: &mut Vec<u8>)
Append the replacement for the match
caps to dst.Source§fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
fn no_expansion(&mut self) -> Option<Cow<'_, [u8]>>
The replacement as fixed bytes, when it needs no expansion. See
Replacer::no_expansion.impl<'t> StructuralPartialEq for NoExpandBytes<'t>
Auto Trait Implementations§
impl<'t> Freeze for NoExpandBytes<'t>
impl<'t> RefUnwindSafe for NoExpandBytes<'t>
impl<'t> Send for NoExpandBytes<'t>
impl<'t> Sync for NoExpandBytes<'t>
impl<'t> Unpin for NoExpandBytes<'t>
impl<'t> UnsafeUnpin for NoExpandBytes<'t>
impl<'t> UnwindSafe for NoExpandBytes<'t>
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