pub struct RegApproxParams(/* private fields */);
Expand description
Regex params passed to approximate matching functions such as regaexec
Implementations§
Source§impl RegApproxParams
impl RegApproxParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new empty RegApproxParams
object.
Sourcepub const fn cost_subst(&self, cost_subst: c_int) -> Self
pub const fn cost_subst(&self, cost_subst: c_int) -> Self
Sets the cost_subst
element.
Sourcepub const fn get(&self) -> ®aparams_t
pub const fn get(&self) -> ®aparams_t
Get an immutable reference to the underlying regaparams_t
object.
Sourcepub fn get_mut(&mut self) -> &mut regaparams_t
pub fn get_mut(&mut self) -> &mut regaparams_t
Get a mutable reference to the underlying regaparams_t
object.
Trait Implementations§
Source§impl Clone for RegApproxParams
impl Clone for RegApproxParams
Source§fn clone(&self) -> RegApproxParams
fn clone(&self) -> RegApproxParams
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 Debug for RegApproxParams
impl Debug for RegApproxParams
Source§impl Default for RegApproxParams
impl Default for RegApproxParams
impl Copy for RegApproxParams
Auto Trait Implementations§
impl Freeze for RegApproxParams
impl RefUnwindSafe for RegApproxParams
impl Send for RegApproxParams
impl Sync for RegApproxParams
impl Unpin for RegApproxParams
impl UnwindSafe for RegApproxParams
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