Struct nostr_types::Span
source · pub struct Span { /* private fields */ }
Expand description
This is like Range<usize>
, except we impl offset() on it
This is like linkify::Span, except we impl offset() on it and don’t need
the as_str() or kind() functions.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Span
impl RefUnwindSafe for Span
impl Send for Span
impl Sync for Span
impl Unpin for Span
impl UnwindSafe for Span
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