pub trait FilterConfigSelectItems {
// Required methods
fn to_select_items() -> Vec<FilterConfigSelectItem>;
fn from_select_item_value(item: i32) -> Self;
fn to_select_item_value(&self) -> i32;
}Available on crate feature
filter only.Expand description
[Vec<FilterConfigSelectItem>]に変換したり、AviUtl2側の値から変換するためのトレイト。
基本的にはこのトレイトを手動で実装する必要はありません。
FilterConfigSelectItems マクロを使用してください。
FilterConfigSelectはVec<FilterConfigSelectItems>との相互変換が可能であれば十分に機能します。
このトレイトを手動で実装する必要はありません。
§See Also
Required Methods§
Sourcefn to_select_items() -> Vec<FilterConfigSelectItem>
fn to_select_items() -> Vec<FilterConfigSelectItem>
Vec<FilterConfigSelectItem> に変換します。
Sourcefn from_select_item_value(item: i32) -> Self
fn from_select_item_value(item: i32) -> Self
Sourcefn to_select_item_value(&self) -> i32
fn to_select_item_value(&self) -> i32
i32 へ変換します。
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.