pub enum Outer {
A(OuterA),
B(OuterB),
}
Variants§
Implementations§
source§impl Outer
impl Outer
pub fn to_ref<'__superstruct>(&'__superstruct self) -> OuterRef<'__superstruct>
pub fn to_mut<'__superstruct>( &'__superstruct mut self, ) -> OuterRefMut<'__superstruct>
pub fn as_a(&self) -> Result<&OuterA, ()>
pub fn as_a_mut(&mut self) -> Result<&mut OuterA, ()>
pub fn as_b(&self) -> Result<&OuterB, ()>
pub fn as_b_mut(&mut self) -> Result<&mut OuterB, ()>
pub fn inner_a(&self) -> Result<&InnerA, ()>
pub fn inner_a_mut(&mut self) -> Result<&mut InnerA, ()>
pub fn inner_b(&self) -> Result<&InnerB, ()>
pub fn inner_b_mut(&mut self) -> Result<&mut InnerB, ()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Outer
impl RefUnwindSafe for Outer
impl Send for Outer
impl Sync for Outer
impl Unpin for Outer
impl UnwindSafe for Outer
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)