pub trait RoleExt: ResourceBuilder {
// Required methods
fn new(name: impl ToString) -> Self;
fn rules(self, rules: impl IntoIterator<Item = PolicyRule>) -> Self;
// Provided method
fn rule(self, rule: PolicyRule) -> Self { ... }
}
Required Methods§
fn new(name: impl ToString) -> Self
fn rules(self, rules: impl IntoIterator<Item = PolicyRule>) -> Self
Provided Methods§
fn rule(self, rule: PolicyRule) -> Self
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.