pub enum LocatorPayload<'a> {
Str(&'a str),
Transparent,
}
Expand description
The type of content a cs:text
element should yield for a locator.
Variants§
Str(&'a str)
Just print the string.
Transparent
An element with the original index of the locator will be yielded. The consumer can then recognize this and replace it with their own content.
Trait Implementations§
source§impl<'a> Clone for LocatorPayload<'a>
impl<'a> Clone for LocatorPayload<'a>
source§fn clone(&self) -> LocatorPayload<'a>
fn clone(&self) -> LocatorPayload<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for LocatorPayload<'a>
impl<'a> Debug for LocatorPayload<'a>
source§impl<'a> Hash for LocatorPayload<'a>
impl<'a> Hash for LocatorPayload<'a>
source§impl<'a> PartialEq for LocatorPayload<'a>
impl<'a> PartialEq for LocatorPayload<'a>
impl<'a> Copy for LocatorPayload<'a>
impl<'a> Eq for LocatorPayload<'a>
impl<'a> StructuralPartialEq for LocatorPayload<'a>
Auto Trait Implementations§
impl<'a> Freeze for LocatorPayload<'a>
impl<'a> RefUnwindSafe for LocatorPayload<'a>
impl<'a> Send for LocatorPayload<'a>
impl<'a> Sync for LocatorPayload<'a>
impl<'a> Unpin for LocatorPayload<'a>
impl<'a> UnwindSafe for LocatorPayload<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.