Struct DelimSpan
pub struct DelimSpan { /* private fields */ }
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) -> SpanReturns a span covering the entire delimited group.
fn open(&self) -> SpanReturns a span for the opening punctuation of the group only.
fn close(&self) -> SpanReturns a span for the closing punctuation of the group only.
Trait Implementations
impl Clone for DelimSpan
fn clone(&self) -> DelimSpan
impl Copy for DelimSpan
impl Debug for DelimSpan
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl !Send for DelimSpan
impl !Sync for DelimSpan
impl Freeze for DelimSpan
impl RefUnwindSafe for DelimSpan
impl Unpin for DelimSpan
impl UnsafeUnpin for DelimSpan
impl UnwindSafe for DelimSpan
Blanket Implementations
impl<T> Any for DelimSpan
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for DelimSpan
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for DelimSpan
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for DelimSpan
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for DelimSpan
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for DelimSpan
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for DelimSpan
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for DelimSpan
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for DelimSpan
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>