pub trait PartialContext<L, R>where
L: From<R>,{
// Required methods
fn has_context(&self) -> bool;
fn partial(self) -> L;
fn unwrap_context(self) -> R;
fn context(self) -> Option<R>;
// Provided method
fn needs_context(&self) -> bool { ... }
}
Required Methods§
fn has_context(&self) -> bool
Sourcefn unwrap_context(self) -> R
fn unwrap_context(self) -> R
can panic if R does not have context