pub struct LineIndexLimits {
pub max_lines: usize,
pub max_index_bytes: usize,
}Expand description
Resource limits for building a reusable full crate::LineIndex.
The byte ceiling covers the line-start offset table, not the borrowed source
text. Position-based one-shot application uses a separate sparse index
bounded by the existing ApplyLimits::max_edits ceiling.
Fields§
§max_lines: usize§max_index_bytes: usizeTrait Implementations§
Source§impl Clone for LineIndexLimits
impl Clone for LineIndexLimits
Source§fn clone(&self) -> LineIndexLimits
fn clone(&self) -> LineIndexLimits
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 moreimpl Copy for LineIndexLimits
Source§impl Debug for LineIndexLimits
impl Debug for LineIndexLimits
Source§impl Default for LineIndexLimits
impl Default for LineIndexLimits
impl Eq for LineIndexLimits
Source§impl PartialEq for LineIndexLimits
impl PartialEq for LineIndexLimits
impl StructuralPartialEq for LineIndexLimits
Auto Trait Implementations§
impl Freeze for LineIndexLimits
impl RefUnwindSafe for LineIndexLimits
impl Send for LineIndexLimits
impl Sync for LineIndexLimits
impl Unpin for LineIndexLimits
impl UnsafeUnpin for LineIndexLimits
impl UnwindSafe for LineIndexLimits
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