pub struct Preg<T> {
pub value: T,
pub error: PregError,
pub warning: Option<Vec<u8>>,
}Expand description
What a preg_* call returned, with preg_last_error() and the last
warning it emitted ("preg_match(): Compilation failed: ...").
Fields§
§value: TThe value the function returned.
error: PregErrorWhat preg_last_error() reports after the call.
warning: Option<Vec<u8>>The last warning emitted, if any.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Preg<T>
Auto Trait Implementations§
impl<T> Forget for Preg<T>
impl<T> Freeze for Preg<T>where
T: Freeze,
impl<T> Move for Preg<T>
impl<T> RefUnwindSafe for Preg<T>where
T: RefUnwindSafe,
impl<T> Send for Preg<T>where
T: Send,
impl<T> Sync for Preg<T>where
T: Sync,
impl<T> Unpin for Preg<T>where
T: Unpin,
impl<T> UnsafeUnpin for Preg<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Preg<T>where
T: UnwindSafe,
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