pub struct Sample { /* private fields */ }Implementations§
Source§impl Sample
impl Sample
pub fn new(bytes: &[u8]) -> Sample
pub fn get_bit_unchecked(&self, i: usize) -> u8
pub fn frequency(&self) -> TestResult
pub fn block_frequency(&self, m: i32) -> TestResult
pub fn poker(&self, m: i32) -> TestResult
pub fn serial1(&self, m: i32) -> TestResult
pub fn serial2(&self, m: i32) -> TestResult
pub fn runs(&self) -> TestResult
pub fn runs_distribution(&self) -> TestResult
pub fn longest_run0(&self) -> TestResult
pub fn longest_run1(&self) -> TestResult
pub fn binary_derivative(&self, k: i32) -> TestResult
pub fn autocorrelation(&self, d: i32) -> TestResult
pub fn rank(&self) -> TestResult
pub fn cumulative_sums_forward(&self) -> TestResult
pub fn cumulative_sums_backward(&self) -> TestResult
pub fn approximate_entropy(&self, m: i32) -> TestResult
pub fn linear_complexity(&self, m: i32) -> TestResult
pub fn universal(&self) -> TestResult
pub fn discrete_fourier(&self) -> TestResult
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Sample
impl RefUnwindSafe for Sample
impl Send for Sample
impl Sync for Sample
impl Unpin for Sample
impl UnwindSafe for Sample
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> 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