#[repr(C)]pub struct RawMatchResult<'a> { /* private fields */ }Implementations§
Source§impl<'a> RawMatchResult<'a>
impl<'a> RawMatchResult<'a>
Sourcepub fn did_match(&self) -> bool
pub fn did_match(&self) -> bool
Returns true if the pattern was matched in the input, otherwise returns false.
Sourcepub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
Returns the raw buffer, outputted by the encoder during the match operation
Sourcepub fn into_bytes(self) -> &'a [u8] ⓘ
pub fn into_bytes(self) -> &'a [u8] ⓘ
Returns the raw buffer, outputted by the encoder during the match operation, consuming the RawMatchResult
Sourcepub fn into_str(self) -> &'a str
pub fn into_str(self) -> &'a str
Returns the match buffer, interpreted as a UTF-8 string, consuming the RawMatchResult
Sourcepub fn time_elapsed_total(&self) -> usize
pub fn time_elapsed_total(&self) -> usize
Returns the total time, in microseconds, elapsed during the call to rosie_match inside librosie.
Sourcepub fn time_elapsed_matching(&self) -> usize
pub fn time_elapsed_matching(&self) -> usize
Returns the time, in microseconds, elapsed matching the pattern against the input.
This value excludes time spend encoding the results
Trait Implementations§
Source§impl<'a> Debug for RawMatchResult<'a>
impl<'a> Debug for RawMatchResult<'a>
Source§impl LibRosieMatchResult for RawMatchResult<'_>
impl LibRosieMatchResult for RawMatchResult<'_>
Auto Trait Implementations§
impl<'a> Freeze for RawMatchResult<'a>
impl<'a> RefUnwindSafe for RawMatchResult<'a>
impl<'a> !Send for RawMatchResult<'a>
impl<'a> !Sync for RawMatchResult<'a>
impl<'a> Unpin for RawMatchResult<'a>
impl<'a> UnwindSafe for RawMatchResult<'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