pub struct WindowSpec {
pub function: WindowFunction,
pub len: usize,
}Expand description
Re-exports the math signal core API. Data type for window spec.
Fields§
§function: WindowFunctionThe function value.
len: usizeThe len value.
Implementations§
Source§impl WindowSpec
impl WindowSpec
Sourcepub fn new(
function: WindowFunction,
len: usize,
) -> Result<WindowSpec, DetectError>
pub fn new( function: WindowFunction, len: usize, ) -> Result<WindowSpec, DetectError>
Creates a new value.
Sourcepub fn validate(self) -> Result<(), DetectError>
pub fn validate(self) -> Result<(), DetectError>
Validates this value.
Trait Implementations§
Source§impl Clone for WindowSpec
impl Clone for WindowSpec
Source§fn clone(&self) -> WindowSpec
fn clone(&self) -> WindowSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WindowSpec
Source§impl Debug for WindowSpec
impl Debug for WindowSpec
impl Eq for WindowSpec
Source§impl PartialEq for WindowSpec
impl PartialEq for WindowSpec
Source§fn eq(&self, other: &WindowSpec) -> bool
fn eq(&self, other: &WindowSpec) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowSpec
Auto Trait Implementations§
impl Freeze for WindowSpec
impl RefUnwindSafe for WindowSpec
impl Send for WindowSpec
impl Sync for WindowSpec
impl Unpin for WindowSpec
impl UnsafeUnpin for WindowSpec
impl UnwindSafe for WindowSpec
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