pub struct MaterialCatalog {
pub name: String,
/* private fields */
}Expand description
名前つきの材料の集まり(カタログの単位)
Fields§
§name: StringImplementations§
Source§impl MaterialCatalog
impl MaterialCatalog
Sourcepub fn new(name: &str, models: Vec<Arc<dyn MaterialModel>>) -> Self
pub fn new(name: &str, models: Vec<Arc<dyn MaterialModel>>) -> Self
名前 name のカタログ(同じ名前のモデルは後のものを引く)
Sourcepub fn models(&self) -> &[Arc<dyn MaterialModel>]
pub fn models(&self) -> &[Arc<dyn MaterialModel>]
材料(並びは登録の順)
Trait Implementations§
Source§impl Clone for MaterialCatalog
impl Clone for MaterialCatalog
Auto Trait Implementations§
impl !RefUnwindSafe for MaterialCatalog
impl !UnwindSafe for MaterialCatalog
impl Freeze for MaterialCatalog
impl Send for MaterialCatalog
impl Sync for MaterialCatalog
impl Unpin for MaterialCatalog
impl UnsafeUnpin for MaterialCatalog
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