pub struct QMap {
pub entities: Vec<QEntity>,
pub metadata: Vec<String>,
}Expand description
A Quake3 map.
Importantly, this struct implements Display, so one can convert this struct into text to be
written to a .map file.
Fields§
§entities: Vec<QEntity>§metadata: Vec<String>Implementations§
Source§impl QMap
impl QMap
pub fn with_metadata(self, metadata: String) -> Self
Sourcepub fn with_tb_neverball_metadata(self) -> Self
pub fn with_tb_neverball_metadata(self) -> Self
Examples found in repository?
More examples
pub fn bake(&self) -> impl Display + use<'_>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QMap
impl RefUnwindSafe for QMap
impl Send for QMap
impl Sync for QMap
impl Unpin for QMap
impl UnwindSafe for QMap
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<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