Skip to main content

FluidStateExt

Trait FluidStateExt 

Source
pub trait FluidStateExt {
    // Required methods
    fn is_water(&self) -> bool;
    fn is_lava(&self) -> bool;
}
Expand description

Extension trait for FluidState type-checking methods.

Required Methods§

Source

fn is_water(&self) -> bool

Returns true if this fluid state contains water.

Source

fn is_lava(&self) -> bool

Returns true if this fluid state contains lava.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§