fn single(&self) -> Result<Option<SliceData>> {
        if let Some(root) = self.data() {
            let mut slice = SliceData::from(root);
            let label = slice.get_label(self.bit_len())?;
            if label.remaining_bits() == self.bit_len() {
                Y::skip(&mut slice)?;
                return Ok(Some(slice))
            }
        }
        Ok(None)
    }
/// return object slice if it is single in hashmap
return object slice if it is single in hashmap
return object slice if it is single in hashmap
fn single(&self) -> Result<Option<SliceData>> {
        if let Some(root) = self.data() {
            let mut slice = SliceData::from(root);
            let label = slice.get_label(self.bit_len())?;
            if label.remaining_bits() == self.bit_len() {
                Y::skip(&mut slice)?;
                return Ok(Some(slice))
            }
        }
        Ok(None)
    }
fn single ( & self ) -> Result < Option < SliceData > > { if let Some ( root ) = self . data ( ) { let mut slice = SliceData :: from ( root ) ; let label = slice . get_label ( self . bit_len ( ) ) ? ; if label . remaining_bits ( ) == self . bit_len ( ) { Y :: skip ( & mut slice ) ? ; return Ok ( Some ( slice ) ) } } Ok ( None ) }
return object slice if it is single in hashmap
return object slice if it is single in hashmap
&self
&self