pub trait MetaListExtension {
// Required method
fn get_self(&self) -> &MetaList;
// Provided methods
fn each(&self, logic: impl FnMut(Meta) -> Result<()>) -> Result<()> { ... }
fn parse_metas(&self) -> Result<Vec<Meta>> { ... }
fn parse_comma_args<T: Parse>(&self) -> Result<Vec<T>> { ... }
}Required Methods§
Provided Methods§
Sourcefn each(&self, logic: impl FnMut(Meta) -> Result<()>) -> Result<()>
fn each(&self, logic: impl FnMut(Meta) -> Result<()>) -> Result<()>
Iterate over all metas in the list.
Sourcefn parse_metas(&self) -> Result<Vec<Meta>>
fn parse_metas(&self) -> Result<Vec<Meta>>
Parse all metas in the list.
Sourcefn parse_comma_args<T: Parse>(&self) -> Result<Vec<T>>
fn parse_comma_args<T: Parse>(&self) -> Result<Vec<T>>
Parse all arguments as comma-separated types.
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.