#[repr(C)]pub struct PHYSFS_File {
pub opaque: *mut c_void,
}Expand description
\struct PHYSFS_File \brief A PhysicsFS file handle.
You get a pointer to one of these when you open a file for reading, writing, or appending via PhysicsFS.
As you can see from the lack of meaningful fields, you should treat this as opaque data. Don’t try to manipulate the file handle, just pass the pointer you got, unmolested, to various PhysicsFS APIs.
\sa PHYSFS_openRead \sa PHYSFS_openWrite \sa PHYSFS_openAppend \sa PHYSFS_close \sa PHYSFS_read \sa PHYSFS_write \sa PHYSFS_seek \sa PHYSFS_tell \sa PHYSFS_eof \sa PHYSFS_setBuffer \sa PHYSFS_flush
Fields§
§opaque: *mut c_void< That’s all you get. Don’t touch.
Trait Implementations§
Source§impl Clone for PHYSFS_File
impl Clone for PHYSFS_File
Source§fn clone(&self) -> PHYSFS_File
fn clone(&self) -> PHYSFS_File
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 PHYSFS_File
impl Debug for PHYSFS_File
impl Copy for PHYSFS_File
Auto Trait Implementations§
impl Freeze for PHYSFS_File
impl RefUnwindSafe for PHYSFS_File
impl !Send for PHYSFS_File
impl !Sync for PHYSFS_File
impl Unpin for PHYSFS_File
impl UnwindSafe for PHYSFS_File
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