pub struct Substring {
pub sources: HashSet<usize>,
pub name: String,
pub weight: usize,
}
Expand description
The result common substring
Fields§
§sources: HashSet<usize>
sources indicates where it comes from
name: String
the name of the substring
weight: usize
the weight = (sources number) * (name chars), which could used to sort the captured substrings.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Substring
impl RefUnwindSafe for Substring
impl Send for Substring
impl Sync for Substring
impl Unpin for Substring
impl UnwindSafe for Substring
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