pub struct MatchInfo<'input> { /* private fields */ }
Implementations§
Source§impl MatchInfo<'_>
impl MatchInfo<'_>
Sourcepub fn as_ptr(&self) -> *mut GMatchInfo
pub fn as_ptr(&self) -> *mut GMatchInfo
Return the inner pointer to the underlying C value.
Sourcepub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMatchInfo) -> &Self
pub unsafe fn from_glib_ptr_borrow(ptr: &*mut GMatchInfo) -> &Self
Borrows the underlying C value.
Source§impl<'input> MatchInfo<'input>
impl<'input> MatchInfo<'input>
pub fn fetch(&self, match_num: i32) -> Option<GString>
pub fn fetch_all(&self) -> Vec<GString>
pub fn fetch_pos(&self, match_num: i32) -> Option<(i32, i32)>
pub fn match_count(&self) -> i32
pub fn regex(&self) -> Regex
pub fn string(&self) -> &'input GStr
pub fn is_partial_match(&self) -> bool
pub fn matches(&self) -> bool
pub fn next(&self) -> Result<bool, Error>
pub fn expand_references( &self, string_to_expand: impl IntoGStr, ) -> Result<Option<GString>, Error>
pub fn fetch_named(&self, name: impl IntoGStr) -> Option<GString>
pub fn fetch_named_pos(&self, name: impl IntoGStr) -> Option<(i32, i32)>
Trait Implementations§
Source§impl<'a, 'input: 'a> FromValue<'a> for MatchInfo<'input>
impl<'a, 'input: 'a> FromValue<'a> for MatchInfo<'input>
Source§type Checker = GenericValueTypeOrNoneChecker<MatchInfo<'input>>
type Checker = GenericValueTypeOrNoneChecker<MatchInfo<'input>>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§impl HasParamSpec for MatchInfo<'static>
impl HasParamSpec for MatchInfo<'static>
Source§impl<'input> Ord for MatchInfo<'input>
impl<'input> Ord for MatchInfo<'input>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'input> PartialOrd for MatchInfo<'input>
impl<'input> PartialOrd for MatchInfo<'input>
Source§impl<'input> StaticType for MatchInfo<'input>
impl<'input> StaticType for MatchInfo<'input>
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl<'input> Eq for MatchInfo<'input>
impl<'input> StructuralPartialEq for MatchInfo<'input>
Auto Trait Implementations§
impl<'input> Freeze for MatchInfo<'input>
impl<'input> RefUnwindSafe for MatchInfo<'input>
impl<'input> !Send for MatchInfo<'input>
impl<'input> !Sync for MatchInfo<'input>
impl<'input> Unpin for MatchInfo<'input>
impl<'input> UnwindSafe for MatchInfo<'input>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.