pub fn split(self) -> Result<(NonZeroLength, NonZeroLength), Option<Height>> {
        let len = NonZeroLength::new(self.get()).ok_or(None)?;
        let len = NonZeroLength::try_into_inner_length(len)?;
        Ok(len.split())
    }
/// Splits the `Length` into left and right, if possible.
///
/// ```
/// # use proofmarshal_core::collections::length::{InnerLength, NonZeroLength};
/// # use proofmarshal_core::collections::height::Height;
/// assert_eq!(InnerLength::new(0b11).unwrap()
///                        .split(),
///            (NonZeroLength::new(0b10).unwrap(),
///             NonZeroLength::new(0b01).unwrap()));
/// ```
Splits the `Length` into left and right, if possible.
Splits the ` Length ` into left and right if possible .
pub fn split(self) -> Result<(NonZeroLength, NonZeroLength), Option<Height>> {
        let len = NonZeroLength::new(self.get()).ok_or(None)?;
        let len = NonZeroLength::try_into_inner_length(len)?;
        Ok(len.split())
    }
pub fn split ( self ) -> Result < ( NonZeroLength , NonZeroLength ) , Option < Height > > { let len = NonZeroLength :: new ( self . get ( ) ) . ok_or ( None ) ? ; let len = NonZeroLength :: try_into_inner_length ( len ) ? ; Ok ( len . split ( ) ) }
Splits the `Length` into left and right, if possible.
Splits the ` Length ` into left and right if possible .
self
use proofmarshal_core::collections::length::{innerlength, nonzerolength};
None
use proofmarshal_core::collections::height::height;
None