Struct physfs_rs::PhysFs [−][src]
pub struct PhysFs {}Expand description
This struct doesn’t store any state, his sole purpose is to ensure that all PhysicsFs calls are done after calling his init function. Only ine instance of it can exist at any given time. This is because PhysicsFs has a global state so this struct makes sure rust borrowing rules are enforced
Implementations
When calling this method for the first time an instance of Self will be returned, if called again it will return None ensuring that no more than one instance exists
Mounts dir to mount_point.
dir can either be a path to an archive of a supported format or to a directory
Open file inside virtual fs for reading
Open file inside virtual fs for writing. If the file already exists it will be truncated
Open file inside virtual fs for writing. If the file already exists new writes will be appended to the existing contents