pub trait SetStatusExt: Set {
// Provided methods
fn on_res_status(&mut self, status: StatusFlags) { ... }
fn off_res_status(&mut self, status: StatusFlags) { ... }
fn set_res_status(&mut self, status: StatusFlags) { ... }
fn with_res_status_on(self, status: StatusFlags) -> Self
where Self: Sized { ... }
fn with_res_status_set(self, status: StatusFlags) -> Self
where Self: Sized { ... }
}Expand description
Provided Methods§
Sourcefn on_res_status(&mut self, status: StatusFlags)
fn on_res_status(&mut self, status: StatusFlags)
turn on StatusFlags to all resources
Sourcefn off_res_status(&mut self, status: StatusFlags)
fn off_res_status(&mut self, status: StatusFlags)
set StatusFlags to all resources
Sourcefn set_res_status(&mut self, status: StatusFlags)
fn set_res_status(&mut self, status: StatusFlags)
set StatusFlags to all resources
Sourcefn with_res_status_on(self, status: StatusFlags) -> Selfwhere
Self: Sized,
fn with_res_status_on(self, status: StatusFlags) -> Selfwhere
Self: Sized,
turn on StatusFlags to all resources from old
Sourcefn with_res_status_set(self, status: StatusFlags) -> Selfwhere
Self: Sized,
fn with_res_status_set(self, status: StatusFlags) -> Selfwhere
Self: Sized,
set StatusFlags to all resources from old
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.