pub struct CrossReference {
pub ref_type: ReferenceType,
pub target: String,
pub display_text: Option<String>,
pub source_location: ReferenceLocation,
pub is_external: bool,
}Expand description
Represents a cross-reference found in documentation
Fields§
§ref_type: ReferenceTypeThe type of reference
target: StringThe target being referenced
display_text: Option<String>Optional display text (different from target)
source_location: ReferenceLocationLocation where the reference was found
is_external: boolWhether this reference is external (outside current project)
Trait Implementations§
Source§impl Clone for CrossReference
impl Clone for CrossReference
Source§fn clone(&self) -> CrossReference
fn clone(&self) -> CrossReference
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CrossReference
impl RefUnwindSafe for CrossReference
impl Send for CrossReference
impl Sync for CrossReference
impl Unpin for CrossReference
impl UnwindSafe for CrossReference
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more