pub struct QuakePack {
pub lumps: Vec<QuakePackLump>,
}Expand description
A quake .PAK file. Contains game data for Quake as well as games in the GoldSrc family of engines (todo can someone verify? -nf)
Fields§
§lumps: Vec<QuakePackLump>The series of lumps (named blocks of binary data) contained in the file.
Implementations§
Trait Implementations§
Source§impl FlatClod<QuakePackLump> for QuakePack
impl FlatClod<QuakePackLump> for QuakePack
Source§fn nth_clump(&self, n: usize) -> &QuakePackLump
fn nth_clump(&self, n: usize) -> &QuakePackLump
Borrows a single clump by number.
Source§fn a_sub_nth_clumps(
&self,
a: impl Iterator<Item = usize>,
) -> Vec<&QuakePackLump>
fn a_sub_nth_clumps( &self, a: impl Iterator<Item = usize>, ) -> Vec<&QuakePackLump>
Borrows many clumps by numbers. The range may be non-contiguous. The returned clumps are always
in numerically increasing order, and are not duplicated, regardless of the ordering or
overlapping of the provided range(s).
Source§fn all_clumps(&self) -> Vec<&Q>
fn all_clumps(&self) -> Vec<&Q>
Borrows every clump.
Source§fn which_clumps(&self, s: impl AsRef<str>) -> Vec<usize>
fn which_clumps(&self, s: impl AsRef<str>) -> Vec<usize>
Indices of clumps with the specified name.
Source§fn clumps_with_name(&self, s: impl AsRef<str>) -> Vec<&Q>
fn clumps_with_name(&self, s: impl AsRef<str>) -> Vec<&Q>
Get every clump with the specified name. The clumps will be in numerically increasing order
by their index in the wad.
Source§fn clump_by_name(&self, s: impl AsRef<str>) -> Option<&Q>
fn clump_by_name(&self, s: impl AsRef<str>) -> Option<&Q>
Get a clump by it’s specific name. If multiple clumps with the name exist, returns the first one.
If no clumps with the name exist, returns
None.Source§impl FlatClodMut<QuakePackLump> for QuakePack
impl FlatClodMut<QuakePackLump> for QuakePack
Source§fn nth_clump_mut(&mut self, n: usize) -> &mut QuakePackLump
fn nth_clump_mut(&mut self, n: usize) -> &mut QuakePackLump
Mutably borrows a single clump by number.
Source§fn a_sub_nth_clumps_mut(
&mut self,
a: impl Iterator<Item = usize>,
) -> Vec<&mut QuakePackLump>
fn a_sub_nth_clumps_mut( &mut self, a: impl Iterator<Item = usize>, ) -> Vec<&mut QuakePackLump>
Mutably borrows many clumps by numbers. The range may be non-contiguous. The returned clumps are always
in numerically increasing order, and are not duplicated, regardless of the ordering or
overlapping of the provided range(s).
Source§fn insert_clump(&mut self, l: QuakePackLump, n: usize)
fn insert_clump(&mut self, l: QuakePackLump, n: usize)
Insert a clump into the clod at the specified position.
fn remove_clump(&mut self, n: usize) -> QuakePackLump
Source§fn all_clumps_mut(&mut self) -> Vec<&mut Q>
fn all_clumps_mut(&mut self) -> Vec<&mut Q>
Borrows every clump.
Source§fn clumps_with_name_mut(&mut self, s: impl AsRef<str>) -> Vec<&mut Q>
fn clumps_with_name_mut(&mut self, s: impl AsRef<str>) -> Vec<&mut Q>
Mutably borrow every clump with the specified name. The clumps will be in numerically increasing order
by their index in the clod.
Source§fn clump_by_name_mut(&mut self, s: impl AsRef<str>) -> Option<&mut Q>
fn clump_by_name_mut(&mut self, s: impl AsRef<str>) -> Option<&mut Q>
Mutably borrow a clump by it’s specific name. If multiple clumps with the name exist, returns the first one.
If no clumps with the name exist, returns
None.Source§fn clumps_between_markers_mut(
&mut self,
start: impl AsRef<str>,
end: impl AsRef<str>,
) -> Vec<&mut Q>
fn clumps_between_markers_mut( &mut self, start: impl AsRef<str>, end: impl AsRef<str>, ) -> Vec<&mut Q>
Mutably borrows all clumps between the given markers, sorted numerically by index.
Source§fn append_clump(&mut self, l: Q)
fn append_clump(&mut self, l: Q)
Add a clump to the clod at the end.
Source§fn inject_clumps(&mut self, ls: impl Iterator<Item = Q>, n: usize)
fn inject_clumps(&mut self, ls: impl Iterator<Item = Q>, n: usize)
Insert a series of clumps at the specified position.
Auto Trait Implementations§
impl Freeze for QuakePack
impl RefUnwindSafe for QuakePack
impl Send for QuakePack
impl Sync for QuakePack
impl Unpin for QuakePack
impl UnsafeUnpin for QuakePack
impl UnwindSafe for QuakePack
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
Source§impl<C, M> Clod<C, PhantomDirectory> for M
impl<C, M> Clod<C, PhantomDirectory> for M
Source§impl<C, M> ClodMut<C, PhantomDirectory> for Mwhere
C: ClumpMut,
M: FlatClodMut<C>,
impl<C, M> ClodMut<C, PhantomDirectory> for Mwhere
C: ClumpMut,
M: FlatClodMut<C>,
Source§fn nth_ent_mut(&mut self, n: usize) -> &mut C
fn nth_ent_mut(&mut self, n: usize) -> &mut C
Mutably borrow a single entity by number.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more