pub struct ContextRequest {
pub file: LeanFile,
pub line: u32,
pub before: usize,
pub after: usize,
}Expand description
Where to center a context bundle and how much surrounding source to include.
Fields§
§file: LeanFileTarget Lean source file.
line: u32One-based line the bundle is centered on.
before: usizeSource lines to include before the target line.
after: usizeSource lines to include after the target line.
Implementations§
Trait Implementations§
Source§impl Clone for ContextRequest
impl Clone for ContextRequest
Source§fn clone(&self) -> ContextRequest
fn clone(&self) -> ContextRequest
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 ContextRequest
impl Debug for ContextRequest
impl Eq for ContextRequest
Source§impl PartialEq for ContextRequest
impl PartialEq for ContextRequest
Source§fn eq(&self, other: &ContextRequest) -> bool
fn eq(&self, other: &ContextRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContextRequest
Auto Trait Implementations§
impl Freeze for ContextRequest
impl RefUnwindSafe for ContextRequest
impl Send for ContextRequest
impl Sync for ContextRequest
impl Unpin for ContextRequest
impl UnsafeUnpin for ContextRequest
impl UnwindSafe for ContextRequest
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