Struct TropicalVariant
#[non_exhaustive]pub struct TropicalVariant {
pub pattern: String,
pub base_color: String,
pub pattern_color: String,
}Expand description
A tropical fish’s look, as a school shares it (TropicalFish.TropicalFishGroupData), by the
names vanilla saves (kob, orange, white).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pattern: StringThe pattern (TropicalFish.Pattern).
base_color: StringThe body’s dye colour.
pattern_color: StringThe pattern’s dye colour.
Implementations§
§impl TropicalVariant
impl TropicalVariant
pub fn new(
pattern: String,
base_color: String,
pattern_color: String,
) -> TropicalVariant
pub fn new( pattern: String, base_color: String, pattern_color: String, ) -> TropicalVariant
A look of pattern, base_color and pattern_color.
Trait Implementations§
§impl Clone for TropicalVariant
impl Clone for TropicalVariant
§fn clone(&self) -> TropicalVariant
fn clone(&self) -> TropicalVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for TropicalVariant
impl Debug for TropicalVariant
impl Eq for TropicalVariant
§impl PartialEq for TropicalVariant
impl PartialEq for TropicalVariant
impl StructuralPartialEq for TropicalVariant
Auto Trait Implementations§
impl Freeze for TropicalVariant
impl RefUnwindSafe for TropicalVariant
impl Send for TropicalVariant
impl Sync for TropicalVariant
impl Unpin for TropicalVariant
impl UnsafeUnpin for TropicalVariant
impl UnwindSafe for TropicalVariant
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