Struct askalono::ContainedResult
source · [−]pub struct ContainedResult<'a> {
pub score: f32,
pub license: IdentifiedLicense<'a>,
pub line_range: (usize, usize),
}
Expand description
A struct describing a single license identified within a larger text.
Fields
score: f32
The confidence of the match within the line range from 0.0 to 1.0.
license: IdentifiedLicense<'a>
The license identified in this portion of the text.
line_range: (usize, usize)
A 0-indexed (inclusive, exclusive) range of line numbers identifying where in the overall text a license was identified.
See TextData.lines_view()
for more information.
Trait Implementations
sourceimpl<'a> Clone for ContainedResult<'a>
impl<'a> Clone for ContainedResult<'a>
sourcefn clone(&self) -> ContainedResult<'a>
fn clone(&self) -> ContainedResult<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for ContainedResult<'a>
impl<'a> Debug for ContainedResult<'a>
sourceimpl<'a> Serialize for ContainedResult<'a>
impl<'a> Serialize for ContainedResult<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ContainedResult<'a>
impl<'a> Send for ContainedResult<'a>
impl<'a> Sync for ContainedResult<'a>
impl<'a> Unpin for ContainedResult<'a>
impl<'a> UnwindSafe for ContainedResult<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more