#[repr(transparent)]pub struct ExprInfo(_);
Expand description
A type containing information related to an expression
Examples
let pattern: Pattern = r"(\d{4})-(\d{2})-(\d{2,4})".parse().unwrap();
let info = pattern.info().unwrap();
assert_eq!(info.min_width(), 10);
assert_eq!(info.max_width(), 12);
assert!(!info.unordered_matches());
assert!(!info.matches_at_eod());
assert!(!info.matches_only_at_eod());
Trait Implementations
sourceimpl ForeignType for ExprInfo
impl ForeignType for ExprInfo
type CType = hs_expr_info
type CType = hs_expr_info
The raw C type.
type Ref = ExprInfoRef
type Ref = ExprInfoRef
The type representing a reference to this type.
sourceunsafe fn from_ptr(ptr: *mut hs_expr_info) -> ExprInfo
unsafe fn from_ptr(ptr: *mut hs_expr_info) -> ExprInfo
Constructs an instance of this type from its raw type. Read more
sourcefn as_ptr(&self) -> *mut hs_expr_info
fn as_ptr(&self) -> *mut hs_expr_info
Returns a raw pointer to the wrapped value.
impl Send for ExprInfo
impl Sync for ExprInfo
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more