#[non_exhaustive]pub struct LineReference {
pub text: String,
pub lines: Range<usize>,
pub alternatives: Vec<Alternative>,
}Expand description
One reference found in laid-out lines.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.text: StringOn one line, without its number or bullet.
lines: Range<usize>Indices of the lines it spans.
alternatives: Vec<Alternative>Trait Implementations§
Source§impl Clone for LineReference
impl Clone for LineReference
Source§impl Debug for LineReference
impl Debug for LineReference
impl Eq for LineReference
Source§impl PartialEq for LineReference
impl PartialEq for LineReference
impl StructuralPartialEq for LineReference
Auto Trait Implementations§
impl Forget for LineReference
impl Freeze for LineReference
impl Move for LineReference
impl RefUnwindSafe for LineReference
impl Send for LineReference
impl Sync for LineReference
impl Unpin for LineReference
impl UnsafeUnpin for LineReference
impl UnwindSafe for LineReference
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