Struct DelimSpan

struct DelimSpan { ... }

An object that holds a Group's span_open() and span_close() together in a more compact representation than holding those 2 spans individually.

Implementations

impl DelimSpan

fn join(self: &Self) -> Span

Returns a span covering the entire delimited group.

fn open(self: &Self) -> Span

Returns a span for the opening punctuation of the group only.

fn close(self: &Self) -> Span

Returns a span for the closing punctuation of the group only.

impl Clone for DelimSpan

fn clone(self: &Self) -> DelimSpan

impl Copy for DelimSpan

impl Debug for DelimSpan

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

impl Freeze for DelimSpan

impl RefUnwindSafe for DelimSpan

impl Send for DelimSpan

impl Sync for DelimSpan

impl Unpin for DelimSpan

impl UnwindSafe for DelimSpan

impl<T> Any for DelimSpan

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for DelimSpan

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for DelimSpan

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for DelimSpan

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for DelimSpan

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for DelimSpan

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for DelimSpan

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for DelimSpan

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for DelimSpan

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>