pub fn as_slice(&self) -> Option<&[u8]> {
        match self.0 {
            Inner::Primitive(ref inner) => Some(inner.as_ref()),
            Inner::Constructed(_) => None
        }
    }
/// Returns a reference to the complete content if possible.
///
/// The method will return a bytes slice of the content if the octet
/// string was encoded as a single primitive value or `None` otherwise.
///
/// This is guaranteed to return some slice if the value was produced by
/// decoding in DER mode.
Returns a reference to the complete content if possible.
The method will return a bytes slice of the content if the octet
string was encoded as a single primitive value or `None` otherwise.

This is guaranteed to return some slice if the value was produced by
decoding in DER mode.
Returns a reference to the complete content if possible . The method will return a bytes slice of the content if the octet string was encoded as a single primitive value or ` None ` otherwise . This is guaranteed to return some slice if the value was produced by decoding in DER mode .
pub fn as_slice(&self) -> Option<&[u8]> {
        match self.0 {
            Inner::Primitive(ref inner) => Some(inner.as_ref()),
            Inner::Constructed(_) => None
        }
    }
pub fn as_slice ( & self ) -> Option < & [ u8 ] > { match self . 0 { Inner :: Primitive ( ref inner ) => Some ( inner . as_ref ( ) ) , Inner :: Constructed ( _ ) => None } }
Returns a reference to the complete content if possible.
Returns a reference to the complete content if possible .
&self
&self