You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is not clear what you mean by seek_mut. You also seem to refer to the API of another crate as this crate does have an open_path method or a Protection enum.
Do you mean how to turn MmapMut into an instance of Seek? If so, then the answer is to wrap it in a Cursor, e.g.
let mmap = MmapMut::open(file)?;letmut cursor = Cursor::new(mmap);
cursor.seek(SeekFrom::Start(10))?;
Is not clear what you mean by seek_mut. You also seem to refer to the API of another crate as this crate does have an open_path method or a Protection enum.
Do you mean how to turn MmapMut into an instance of Seek? If so, then the answer to wrap it in a Cursor, e.g.
let mmap = MmapMut::open(file)?;letmut cursor = Cursor::new(mmap);
cursor.seek(SeekFrom::Start(10))?;
like this:
The text was updated successfully, but these errors were encountered: