pub struct DllOverride(/* private fields */);Expand description
One WINEDLLOVERRIDES element, <modules>=<order>.
That is comma-separated module names, =, and a load order such as
n,b, empty to disable the modules, or default to take them out of the
overrides of the rules folded before. The text is kept as written.
Implementations§
Source§impl DllOverride
impl DllOverride
Sourcepub fn new(text: impl Into<String>) -> Result<Self, FieldError>
pub fn new(text: impl Into<String>) -> Result<Self, FieldError>
text as a DLL override.
§Errors
FieldError::InvalidDllOverride when text has no =,
FieldError::Nul when it holds a NUL.
Sourcepub fn modules(&self) -> impl Iterator<Item = &str>
pub fn modules(&self) -> impl Iterator<Item = &str>
The module names before the =, trimmed, without empty ones.
Sourcepub fn is_default(&self) -> bool
pub fn is_default(&self) -> bool
Whether the order is default, in any case and with surrounding
spaces: such an entry sets no load order, it takes its modules out of
the entries before it.
Trait Implementations§
Source§impl Clone for DllOverride
impl Clone for DllOverride
Source§fn clone(&self) -> DllOverride
fn clone(&self) -> DllOverride
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 DllOverride
impl Debug for DllOverride
Source§impl Display for DllOverride
impl Display for DllOverride
impl Eq for DllOverride
Source§impl FromStr for DllOverride
impl FromStr for DllOverride
Source§impl Hash for DllOverride
impl Hash for DllOverride
Source§impl PartialEq for DllOverride
impl PartialEq for DllOverride
Source§impl PartialEq<&str> for DllOverride
impl PartialEq<&str> for DllOverride
impl StructuralPartialEq for DllOverride
Auto Trait Implementations§
impl Freeze for DllOverride
impl RefUnwindSafe for DllOverride
impl Send for DllOverride
impl Sync for DllOverride
impl Unpin for DllOverride
impl UnsafeUnpin for DllOverride
impl UnwindSafe for DllOverride
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