fn new(from: &OctetString) -> Self {
        match from.0 {
            Inner::Primitive(ref inner) => {
                OctetStringSource {
                    current: inner.clone(),
                    remainder: Bytes::new(),
                }
            }
            Inner::Constructed(ref inner) => {
                OctetStringSource {
                    current: Bytes::new(),
                    remainder: inner.clone().into_bytes()
                }
            }
        }
    }
/// Creates a new source atop an existing octet string.
Creates a new source atop an existing octet string.
Creates a new source atop an existing octet string .
fn new(from: &OctetString) -> Self {
        match from.0 {
            Inner::Primitive(ref inner) => {
                OctetStringSource {
                    current: inner.clone(),
                    remainder: Bytes::new(),
                }
            }
            Inner::Constructed(ref inner) => {
                OctetStringSource {
                    current: Bytes::new(),
                    remainder: inner.clone().into_bytes()
                }
            }
        }
    }
fn new ( from : & OctetString ) -> Self { match from . 0 { Inner :: Primitive ( ref inner ) => { OctetStringSource { current : inner . clone ( ) , remainder : Bytes :: new ( ) , } } Inner :: Constructed ( ref inner ) => { OctetStringSource { current : Bytes :: new ( ) , remainder : inner . clone ( ) . into_bytes ( ) } } } }
Creates a new source atop an existing octet string.
Creates a new source atop an existing octet string .
from
&OctetString
from
&OctetString