Struct glib::match_info::MatchInfo
source · 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<'a>(
ptr: *const *const GMatchInfo,
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const *const GMatchInfo, ) -> &'a 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<(), 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>
§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> PartialEq for MatchInfo<'input>
impl<'input> PartialEq for MatchInfo<'input>
source§impl<'input> PartialOrd for MatchInfo<'input>
impl<'input> PartialOrd for MatchInfo<'input>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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.