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§fn clone(&self) -> FileSetting
fn clone(&self) -> FileSetting
Returns a duplicate 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 FileSetting
impl Debug for FileSetting
Source§impl Display for FileSetting
impl Display for FileSetting
Source§impl PartialEq<&String> for FileSetting
impl PartialEq<&String> for FileSetting
Source§impl PartialEq<&str> for FileSetting
impl PartialEq<&str> for FileSetting
Source§impl PartialEq<str> for FileSetting
impl PartialEq<str> for FileSetting
Source§impl PartialEq for FileSetting
impl PartialEq 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