#[repr(transparent)]pub(crate) struct BitResult<T> {
value_if_not_past_eof: T,
}
Fields§
§value_if_not_past_eof: T
Implementations§
Source§impl<T> BitResult<T>
impl<T> BitResult<T>
const fn ok(value: T) -> Self
Sourcepub(crate) fn or_accumulate(self, acc: &mut BitResultAccumulator) -> T
pub(crate) fn or_accumulate(self, acc: &mut BitResultAccumulator) -> T
Instead of checking this result now, accumulate the burden of checking into an accumulator. This accumulator must be checked in the end.
Auto Trait Implementations§
impl<T> Freeze for BitResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for BitResult<T>where
T: RefUnwindSafe,
impl<T> Send for BitResult<T>where
T: Send,
impl<T> Sync for BitResult<T>where
T: Sync,
impl<T> Unpin for BitResult<T>where
T: Unpin,
impl<T> UnwindSafe for BitResult<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more