pub trait FissionViewField {
type View<'a>
where Self: 'a;
// Required method
fn view_field<'a>(value: &'a Self) -> Self::View<'a>;
}Expand description
Maps a state field type to the view returned by generated view accessors.
#[derive(FissionStateView)] implements this trait for nested state
structs. Built-in scalar and collection types map to ValueView.
Required Associated Types§
Required Methods§
fn view_field<'a>(value: &'a Self) -> Self::View<'a>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".