INNER CODE UNIT · Rust
unwrap
fishfolk/bones · framework_crates/bones_asset/src/lib.rs:121
pub fn unwrap(self) -> T {
self.option().unwrap()
}
/// Returns the contained `Set` value or a provided default.
#[inline]
pub fn unwrap_or(self, default: T) -> T {
self.option().unwrap_or(default)
}
/// Returns the contained `Set` value or computes it from a closure.
#[inline]
pub fn unwrap_or_else<F: FnOnce() -> T>(self, f: F) -> T {
self.option().unwrap_or_else(f)
}
/// Maps a `Maybe<T>` to `Maybe<U>` by applying a function to a contained value.
#[inline]