Trait despero::ecs::borrow::ContextBorrow
source · pub trait ContextBorrow<'a> {
type Target;
// Required method
fn borrow(context: &'a Context<'_>) -> Result<Self::Target, Error>;
}
Expand description
Helper trait for borrowing either immutably or mutably from context