pub trait HasBody<T> {
// Required methods
fn body(&self) -> &T;
fn body_mut(&mut self) -> &mut T;
fn set_body(&mut self, body: T);
}
Expand description
This trait is implemented by types that have a distinct /body/ type.
pub trait HasBody<T> {
// Required methods
fn body(&self) -> &T;
fn body_mut(&mut self) -> &mut T;
fn set_body(&mut self, body: T);
}
This trait is implemented by types that have a distinct /body/ type.