pub struct SpannedTextRef<'a, C>where
C: SpannedText + ?Sized,{ /* private fields */ }
Expand description
A reference to another SpannedText
.
Trait Implementations
sourceimpl<'a, C> SpannedText for SpannedTextRef<'a, C>where
C: 'a + SpannedText + ?Sized,
impl<'a, C> SpannedText for SpannedTextRef<'a, C>where
C: 'a + SpannedText + ?Sized,
type S = <C as SpannedText>::S
type S = <C as SpannedText>::S
Type of span returned by SpannedText::spans()
.
sourcefn spans(&self) -> &[<C as SpannedText>::S]
fn spans(&self) -> &[<C as SpannedText>::S]
Returns the spans for this text.
sourcefn as_ref(&self) -> SpannedTextRef<'_, Self>
fn as_ref(&self) -> SpannedTextRef<'_, Self>
Returns a SpannedText
by reference.
Auto Trait Implementations
impl<'a, C: ?Sized> RefUnwindSafe for SpannedTextRef<'a, C>where
C: RefUnwindSafe,
impl<'a, C: ?Sized> Send for SpannedTextRef<'a, C>where
C: Sync,
impl<'a, C: ?Sized> Sync for SpannedTextRef<'a, C>where
C: Sync,
impl<'a, C: ?Sized> Unpin for SpannedTextRef<'a, C>
impl<'a, C: ?Sized> UnwindSafe for SpannedTextRef<'a, C>where
C: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more