pub struct Image { /* private fields */ }Implementations§
Source§impl Image
impl Image
pub fn create(options: &CreateOptions) -> Result<Self>
pub fn open(path: impl AsRef<Path>) -> Result<Self>
pub fn volume(&self) -> Result<Volume>
pub fn put_file(&mut self, data: &[u8], options: &PutOptions) -> Result<()>
pub fn create_directory(&mut self, options: &MkdirOptions) -> Result<()>
pub fn remove_file(&mut self, options: &RemoveOptions) -> Result<()>
pub fn save_new(&self, path: impl AsRef<Path>) -> Result<()>
pub fn save(&self, path: impl AsRef<Path>) -> Result<()>
pub fn bytes(&self) -> &[u8] ⓘ
pub fn install_bootable_components( &mut self, boot_blocks: &[u8], prodos_system: &BootFile, basic_system: &BootFile, ) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnsafeUnpin for Image
impl UnwindSafe for Image
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