Struct qt_core::q_standard_paths::LocateOption
source · pub struct LocateOption(/* private fields */);
Expand description
This enum describes the different flags that can be used for controlling the behavior of QStandardPaths::locate and QStandardPaths::locateAll.
C++ enum: QStandardPaths::LocateOption
.
This enum describes the different flags that can be used for controlling the behavior of QStandardPaths::locate and QStandardPaths::locateAll.
The LocateOptions type is a typedef for QFlags<LocateOption>. It stores an OR combination of LocateOption values.
Implementations§
source§impl LocateOption
impl LocateOption
sourcepub const LocateFile: LocateOption = _
pub const LocateFile: LocateOption = _
return only files (C++ enum variant: LocateFile = 0
)
sourcepub const LocateDirectory: LocateOption = _
pub const LocateDirectory: LocateOption = _
return only directories (C++ enum variant: LocateDirectory = 1
)
Trait Implementations§
source§impl<T: Into<QFlags<LocateOption>>> BitOr<T> for LocateOption
impl<T: Into<QFlags<LocateOption>>> BitOr<T> for LocateOption
§type Output = QFlags<LocateOption>
type Output = QFlags<LocateOption>
The resulting type after applying the
|
operator.source§impl Clone for LocateOption
impl Clone for LocateOption
source§fn clone(&self) -> LocateOption
fn clone(&self) -> LocateOption
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 Debug for LocateOption
impl Debug for LocateOption
source§impl From<LocateOption> for QFlags<LocateOption>
impl From<LocateOption> for QFlags<LocateOption>
source§fn from(value: LocateOption) -> Self
fn from(value: LocateOption) -> Self
Converts to this type from the input type.
source§impl From<LocateOption> for c_int
impl From<LocateOption> for c_int
source§fn from(value: LocateOption) -> Self
fn from(value: LocateOption) -> Self
Converts to this type from the input type.
source§impl From<i32> for LocateOption
impl From<i32> for LocateOption
source§impl PartialEq for LocateOption
impl PartialEq for LocateOption
source§fn eq(&self, other: &LocateOption) -> bool
fn eq(&self, other: &LocateOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LocateOption
impl Eq for LocateOption
impl StructuralEq for LocateOption
impl StructuralPartialEq for LocateOption
Auto Trait Implementations§
impl RefUnwindSafe for LocateOption
impl Send for LocateOption
impl Sync for LocateOption
impl Unpin for LocateOption
impl UnwindSafe for LocateOption
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