pub struct QueryOptions<'a> {
pub scope: SettingsScope,
pub view: Option<&'a BinaryView>,
pub function: Option<Ref<Function>>,
}
Fields§
§scope: SettingsScope
§view: Option<&'a BinaryView>
§function: Option<Ref<Function>>
Implementations§
source§impl<'a> QueryOptions<'a>
impl<'a> QueryOptions<'a>
pub fn new() -> Self
pub fn new_with_view(view: &'a BinaryView) -> Self
pub fn new_with_func(func: Ref<Function>) -> Self
sourcepub fn with_view(self, view: &'a BinaryView) -> Self
pub fn with_view(self, view: &'a BinaryView) -> Self
Set the query to target a specific view, this will be overridden if a function is targeted.
pub fn with_scope(self, scope: SettingsScope) -> Self
sourcepub fn with_function(self, function: Ref<Function>) -> Self
pub fn with_function(self, function: Ref<Function>) -> Self
Set the query to target a specific function, this will override the target view.
Trait Implementations§
source§impl<'a> Clone for QueryOptions<'a>
impl<'a> Clone for QueryOptions<'a>
source§fn clone(&self) -> QueryOptions<'a>
fn clone(&self) -> QueryOptions<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for QueryOptions<'a>
impl<'a> Debug for QueryOptions<'a>
Auto Trait Implementations§
impl<'a> Freeze for QueryOptions<'a>
impl<'a> RefUnwindSafe for QueryOptions<'a>
impl<'a> Send for QueryOptions<'a>
impl<'a> Sync for QueryOptions<'a>
impl<'a> Unpin for QueryOptions<'a>
impl<'a> UnwindSafe for QueryOptions<'a>
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