pub struct ReferenceError {
pub ref_type: ReferenceType,
pub key: String,
pub location: String,
pub node_id: Option<NodeId>,
pub offset: Option<u32>,
pub len: Option<u32>,
}Expand description
A single reference error with optional span information
Fields§
§ref_type: ReferenceTypeType of reference
key: StringThe key that was referenced
location: StringLocation description (e.g., “in section ‘intro’”)
node_id: Option<NodeId>NodeId of the field containing the reference (for span resolution)
offset: Option<u32>Byte offset of the reference within the field content
len: Option<u32>Byte length of the reference string (e.g., “!cite[key]”)
Implementations§
Source§impl ReferenceError
impl ReferenceError
Sourcepub fn new(ref_type: ReferenceType, key: String, location: String) -> Self
pub fn new(ref_type: ReferenceType, key: String, location: String) -> Self
Create a new reference error without span information
Trait Implementations§
Source§impl Clone for ReferenceError
impl Clone for ReferenceError
Source§fn clone(&self) -> ReferenceError
fn clone(&self) -> ReferenceError
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 ReferenceError
impl Debug for ReferenceError
Auto Trait Implementations§
impl Freeze for ReferenceError
impl RefUnwindSafe for ReferenceError
impl Send for ReferenceError
impl Sync for ReferenceError
impl Unpin for ReferenceError
impl UnwindSafe for ReferenceError
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