pub struct ResolvedReference {
pub href: String,
pub text: Option<String>,
}Expand description
The resolved destination of a cross-reference.
Fields§
§href: StringThe hyperlink destination. For a same-document reference this is a
fragment such as #section-id; a cross-document resolver may return a
full or relative URL.
text: Option<String>The display text to use when the cross-reference did not specify its own text. This is typically the target’s reference text (reftext).
Trait Implementations§
Source§impl Clone for ResolvedReference
impl Clone for ResolvedReference
Source§fn clone(&self) -> ResolvedReference
fn clone(&self) -> ResolvedReference
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedReference
impl Debug for ResolvedReference
impl Eq for ResolvedReference
Source§impl PartialEq for ResolvedReference
impl PartialEq for ResolvedReference
Source§fn eq(&self, other: &ResolvedReference) -> bool
fn eq(&self, other: &ResolvedReference) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResolvedReference
Auto Trait Implementations§
impl Freeze for ResolvedReference
impl RefUnwindSafe for ResolvedReference
impl Send for ResolvedReference
impl Sync for ResolvedReference
impl Unpin for ResolvedReference
impl UnsafeUnpin for ResolvedReference
impl UnwindSafe for ResolvedReference
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