[][src]Trait ovgu_canteen::Update

pub trait Update: Sized {
    type Err;
    fn update(&mut self, from: &Self) -> Result<(), Self::Err>;
}

This trait is used to update the data of an instance.

Associated Types

type Err

This is the error type used when the update fails.

Loading content...

Required methods

fn update(&mut self, from: &Self) -> Result<(), Self::Err>

Update this instance from another instance with the same type.

Arguments

from - The other instance that is used to update this instance.

Returns

A result containing an error that may occur during the update.

Loading content...

Implementors

impl Update for Day[src]

type Err = Error

impl Update for Meal[src]

type Err = Error

impl Update for Price[src]

type Err = Error

Loading content...