[−][src]Struct genie_dat::TechEffect
A tech effect is a group of attribute changes that are applied when the effect is triggered.
Fields
commands: Vec<EffectCommand>
Attribute commands to execute when this effect is triggered.
Implementations
impl TechEffect
[src]
pub fn name(&self) -> &str
[src]
Get the name of this effect.
pub fn set_name(&mut self, name: &str)
[src]
Set the name of this effect.
Panics
This function panics if name
requires more than 31 bytes of storage.
pub fn read_from<R: Read>(input: &mut R) -> Result<Self>
[src]
pub fn write_to<W: Write>(&self, output: &mut W) -> Result<()>
[src]
Trait Implementations
impl Clone for TechEffect
[src]
fn clone(&self) -> TechEffect
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TechEffect
[src]
impl Default for TechEffect
[src]
fn default() -> TechEffect
[src]
Auto Trait Implementations
impl RefUnwindSafe for TechEffect
impl Send for TechEffect
impl Sync for TechEffect
impl Unpin for TechEffect
impl UnwindSafe for TechEffect
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,