makepad_live_compiler::vec4_ext

Trait Vec4Ext

Source
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§

Source

fn from_hex_bytes(bytes: &[u8]) -> Result<Vec4, ()>

Source

fn append_hex_to_string(&self, out: &mut String)

Source

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.

Implementors§