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§
Source§impl<'a> Clone for ContainedResult<'a>
impl<'a> Clone for ContainedResult<'a>
Source§fn clone(&self) -> ContainedResult<'a>
fn clone(&self) -> ContainedResult<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for ContainedResult<'a>
impl<'a> Debug for ContainedResult<'a>
Auto Trait Implementations§
impl<'a> Freeze for ContainedResult<'a>
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more