#[non_exhaustive]pub struct ClassQuery {
pub pattern: String,
pub precise: bool,
}Expand description
Class part of a member query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pattern: StringExact Dalvik descriptor when precise, otherwise a fuzzy pattern.
precise: boolMatch pattern as an exact descriptor rather than fuzzily.
Implementations§
Source§impl ClassQuery
impl ClassQuery
Sourcepub fn exact(descriptor: impl Into<String>) -> ClassQuery
pub fn exact(descriptor: impl Into<String>) -> ClassQuery
The class of exactly this Dalvik descriptor (Lcom/example/Main;).
Sourcepub fn fuzzy(pattern: impl Into<String>) -> ClassQuery
pub fn fuzzy(pattern: impl Into<String>) -> ClassQuery
The classes whose descriptor matches this fuzzy pattern.
Trait Implementations§
Source§impl Clone for ClassQuery
impl Clone for ClassQuery
Source§fn clone(&self) -> ClassQuery
fn clone(&self) -> ClassQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClassQuery
impl Debug for ClassQuery
impl Eq for ClassQuery
Source§impl PartialEq for ClassQuery
impl PartialEq for ClassQuery
impl StructuralPartialEq for ClassQuery
Auto Trait Implementations§
impl Forget for ClassQuery
impl Freeze for ClassQuery
impl Move for ClassQuery
impl RefUnwindSafe for ClassQuery
impl Send for ClassQuery
impl Sync for ClassQuery
impl Unpin for ClassQuery
impl UnsafeUnpin for ClassQuery
impl UnwindSafe for ClassQuery
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