pub struct NumPyReference {
pub range: TextRange,
pub directive_marker: Option<TextRange>,
pub open_bracket: Option<TextRange>,
pub number: TextRange,
pub close_bracket: Option<TextRange>,
pub content: TextRange,
}Expand description
Numbered reference (from References section).
Represents an RST citation reference like .. [1] Author, Title.
Fields§
§range: TextRangeSource span.
directive_marker: Option<TextRange>The RST directive marker (..) with its span, if present.
None for non-RST (plain text) references.
open_bracket: Option<TextRange>Opening bracket ([) enclosing the reference number, with its span, if present.
number: TextRangeReference number (e.g., “1”, “2”, “3”) with its span.
close_bracket: Option<TextRange>Closing bracket (]) enclosing the reference number, with its span, if present.
content: TextRangeReference content (author, title, etc) with its span.
Trait Implementations§
Source§impl Clone for NumPyReference
impl Clone for NumPyReference
Source§fn clone(&self) -> NumPyReference
fn clone(&self) -> NumPyReference
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 moreSource§impl Debug for NumPyReference
impl Debug for NumPyReference
Source§impl PartialEq for NumPyReference
impl PartialEq for NumPyReference
impl StructuralPartialEq for NumPyReference
Auto Trait Implementations§
impl Freeze for NumPyReference
impl RefUnwindSafe for NumPyReference
impl Send for NumPyReference
impl Sync for NumPyReference
impl Unpin for NumPyReference
impl UnsafeUnpin for NumPyReference
impl UnwindSafe for NumPyReference
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