pub struct MatchResult {
pub result: Value,
pub matches: Option<Array>,
}Expand description
The result of preg_match and preg_match_all: the return value
(Int or Bool(false)) and $matches (None when the pattern did not
compile, which leaves $matches untouched).
Fields§
§result: ValueThe return value: the match count, or false.
matches: Option<Array>$matches, or None when the pattern did not compile.
Trait Implementations§
Source§impl Clone for MatchResult
impl Clone for MatchResult
Source§impl Debug for MatchResult
impl Debug for MatchResult
Source§impl PartialEq for MatchResult
impl PartialEq for MatchResult
impl StructuralPartialEq for MatchResult
Auto Trait Implementations§
impl Forget for MatchResult
impl Freeze for MatchResult
impl Move for MatchResult
impl RefUnwindSafe for MatchResult
impl Send for MatchResult
impl Sync for MatchResult
impl Unpin for MatchResult
impl UnsafeUnpin for MatchResult
impl UnwindSafe for MatchResult
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