pub struct FileSetting { /* private fields */ }Expand description
A plain filename entry from an openmw.cfg file (content=, fallback-archive=, groundcover=).
Stores only the filename string — no path resolution is applied, since these entries name files looked up through the VFS rather than direct filesystem paths.
PartialEq comparisons are value-only and ignore source metadata, making it straightforward
to check whether a particular file is present regardless of which config file defined it.
Implementations§
Source§impl FileSetting
impl FileSetting
Sourcepub fn new(value: &str, source_config: &Path, comment: &mut String) -> Self
pub fn new(value: &str, source_config: &Path, comment: &mut String) -> Self
Creates a new FileSetting attributed to source_config.
Consumes the accumulated comment string (via std::mem::take).
Sourcepub fn value_str(&self) -> &str
pub fn value_str(&self) -> &str
Borrowed string view of Self::value.
Trait Implementations§
Source§impl Clone for FileSetting
impl Clone for FileSetting
Source§impl Debug for FileSetting
impl Debug for FileSetting
Source§impl Display for FileSetting
impl Display for FileSetting
Source§impl PartialEq for FileSetting
impl PartialEq for FileSetting
Source§impl PartialEq<&String> for FileSetting
impl PartialEq<&String> for FileSetting
Source§impl PartialEq<&str> for FileSetting
impl PartialEq<&str> for FileSetting
Auto Trait Implementations§
impl Freeze for FileSetting
impl RefUnwindSafe for FileSetting
impl Send for FileSetting
impl Sync for FileSetting
impl Unpin for FileSetting
impl UnsafeUnpin for FileSetting
impl UnwindSafe for FileSetting
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more