Struct physfs_sys::PHYSFS_File[][src]

#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.