pub enum PrepareInputResult {
SuccessNoGrowth = 0,
SuccessGrowth = 1,
Failure = 2,
}
Expand description
This enum represents the results of the prepare_input
function.
Variants§
SuccessNoGrowth = 0
Indicates that the input preparation was successful and no memory growth was needed.
SuccessGrowth = 1
Indicates that the input preparation was successful and memory was grown to accommodate the haystack.
Failure = 2
Indicates that input preparation failed, likely due to an inability to grow memory.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrepareInputResult
impl RefUnwindSafe for PrepareInputResult
impl Send for PrepareInputResult
impl Sync for PrepareInputResult
impl Unpin for PrepareInputResult
impl UnwindSafe for PrepareInputResult
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