Enum hayagriva::LocatorPayload
source · 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>
source§fn eq(&self, other: &LocatorPayload<'a>) -> bool
fn eq(&self, other: &LocatorPayload<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for LocatorPayload<'a>
impl<'a> Eq for LocatorPayload<'a>
impl<'a> StructuralPartialEq for LocatorPayload<'a>
Auto Trait Implementations§
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<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.