pub trait GetCardInfo: Sized {
// Required methods
fn get_name(&self) -> &str;
fn get_front_image(&self) -> Result<String, CardError>;
fn get_back_image(&self) -> Result<String, CardError>;
fn parse(string: &str) -> Result<Self, ParseError>;
}Expand description
Trait for all things that are cards
Required Methods§
Sourcefn get_front_image(&self) -> Result<String, CardError>
fn get_front_image(&self) -> Result<String, CardError>
Sourcefn get_back_image(&self) -> Result<String, CardError>
fn get_back_image(&self) -> Result<String, CardError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.