pub struct AztecConfigBuilder { /* private fields */ }Expand description
Builder for the AZTEC configuration
Implementations§
Source§impl AztecConfigBuilder
impl AztecConfigBuilder
Sourcepub fn threshold(self, threshold: u16) -> Self
pub fn threshold(self, threshold: u16) -> Self
The threshold for a series of samples to be represented as a line
Sourcepub fn max_line_len(self, max_line_len: u8) -> Self
pub fn max_line_len(self, max_line_len: u8) -> Self
The maximum length of a line (in samples).
The maximum allowed value is u7 (63)
Sourcepub fn max_slope_len(self, max_slope_len: u8) -> Self
pub fn max_slope_len(self, max_slope_len: u8) -> Self
The maximum length of a slope (in samples). Set this value lower if the slopes are too long.
The maximum allowed value is u7 (63)
Sourcepub fn max_slope_line_len(self, max_slope_line_len: u8) -> Self
pub fn max_slope_line_len(self, max_slope_line_len: u8) -> Self
The maximum length of a line for it to be considered a part of the slope.
The value should be less than max_slope_len
Sourcepub fn build(self) -> Result<AztecConfig, AztecError>
pub fn build(self) -> Result<AztecConfig, AztecError>
Validates the given parameters and creates a new AztecConfig
Auto Trait Implementations§
impl Freeze for AztecConfigBuilder
impl RefUnwindSafe for AztecConfigBuilder
impl Send for AztecConfigBuilder
impl Sync for AztecConfigBuilder
impl Unpin for AztecConfigBuilder
impl UnwindSafe for AztecConfigBuilder
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