pub enum LineSet {
All {
buf: LineIndex,
},
Subset {
buf: CowVec<usize>,
completed: Arc<AtomicBool>,
min_len: usize,
},
}Variants§
Implementations§
source§impl LineSet
impl LineSet
pub fn empty() -> Self
pub fn all(buf: LineIndex) -> Self
pub fn is_all(&self) -> bool
pub fn search(iter: ContiguousSegmentIterator, regex: Regex) -> Self
pub fn compose( filters: Vec<Self>, complete: bool, strategy: CompositeStrategy ) -> Result<Self>
pub fn is_complete(&self) -> bool
pub fn get(&self, idx: usize) -> Option<usize>
pub fn find(&self, line_number: usize) -> Option<usize>
pub fn has_line(&self, line_number: usize) -> bool
pub fn nearest_forward(&self, line_number: usize) -> Option<usize>
pub fn nearest_backward(&self, line_number: usize) -> Option<usize>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LineSet
impl Send for LineSet
impl Sync for LineSet
impl Unpin for LineSet
impl UnwindSafe for LineSet
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