INNER CODE UNIT · Rust
as_mut
fishfolk/bones · framework_crates/bones_asset/src/lib.rs:104
pub fn as_mut(&mut self) -> Maybe<&mut T> {
match *self {
Maybe::Unset => Maybe::Unset,
Maybe::Set(ref mut x) => Maybe::Set(x),
}
}
/// Returns the contained `Set` value, consuming the `self` value.
#[inline]
#[track_caller]
pub fn expect(self, msg: &str) -> T {
self.option().expect(msg)
}
/// Returns the contained `Set` value, consuming the `self` value.
#[inline]
#[track_caller]
pub fn unwrap(self) -> T {