pub trait IAttributeNamed: IAttribute {
// Required method
fn get_name() -> &'static str
where Self: Sized;
// Provided method
fn as_named_attribute(&self) -> Named
where Self: Sized { ... }
}
pub trait IAttributeNamed: IAttribute {
// Required method
fn get_name() -> &'static str
where Self: Sized;
// Provided method
fn as_named_attribute(&self) -> Named
where Self: Sized { ... }
}