pub trait Vec4Ext {
// Required methods
fn from_hex_bytes(bytes: &[u8]) -> Result<Vec4, ()>;
fn append_hex_to_string(&self, out: &mut String);
fn color(value: &str) -> Vec4;
// Provided method
fn from_hex_str(hex: &str) -> Result<Vec4, ()> { ... }
}
Required Methods§
fn from_hex_bytes(bytes: &[u8]) -> Result<Vec4, ()>
fn append_hex_to_string(&self, out: &mut String)
fn color(value: &str) -> Vec4
Provided Methods§
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.