pub struct Markers<'a> { /* private fields */ }Expand description
The markers of one level, in one workspace.
Implementations§
Source§impl<'a> Markers<'a>
impl<'a> Markers<'a>
Sourcepub fn create(&self, marker: &Marker) -> Result<()>
pub fn create(&self, marker: &Marker) -> Result<()>
Create the marker (empty), creating the workspace if it is missing.
Sourcepub fn create_with(&self, marker: &Marker, content: &str) -> Result<()>
pub fn create_with(&self, marker: &Marker, content: &str) -> Result<()>
Create the marker with the given content, replacing any previous content. A marker
path that is a symlink is refused rather than written through (O_NOFOLLOW), so a
link in the workspace can never make the game overwrite another file;
preparing the level removes the link itself.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Markers<'a>
impl<'a> RefUnwindSafe for Markers<'a>
impl<'a> Send for Markers<'a>
impl<'a> Sync for Markers<'a>
impl<'a> Unpin for Markers<'a>
impl<'a> UnsafeUnpin for Markers<'a>
impl<'a> UnwindSafe for Markers<'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