pub fn from_compressed(mut compressed: Backend) -> Result<Self, Backend>
    where
        Backend: ReadWords<Word, Stack>,
    {
        assert!(State::BITS >= 2 * Word::BITS);

        let state = match Self::read_initial_state(|| compressed.read()) {
            Ok(state) => state,
            Err(_) => return Err(compressed),
        };

        Ok(Self {
            bulk: compressed,
            state,
            phantom: PhantomData,
        })
    }
/// Creates an ANS stack with some initial compressed data.
///
/// This is usually the starting point if you want to *decompress* data previously
/// obtained from [`into_compressed`].  However, it can also be used to append more
/// symbols to an existing compressed buffer of data.
///
/// Returns `Err(compressed)` if `compressed` is not empty and its last entry is
/// zero, since an `AnsCoder` cannot represent trailing zero words. This error cannot
/// occur if `compressed` was obtained from [`into_compressed`], which never returns
/// data with a trailing zero word. If you want to construct a `AnsCoder` from an
/// unknown source of binary data (e.g., to decode some side information into latent
/// variables) then call [`from_binary`] instead.
///
/// [`into_compressed`]: #method.into_compressed
/// [`from_binary`]: #method.from_binary
Creates an ANS stack with some initial compressed data.
This is usually the starting point if you want to *decompress* data previously
obtained from [`into_compressed`].  However, it can also be used to append more
symbols to an existing compressed buffer of data.




Creates an ANS stack with some initial compressed data . This is usually the starting point if you want to * decompress * data previously obtained from [ ` into_compressed ` ] . However it can also be used to append more symbols to an existing compressed buffer of data .
pub fn from_compressed(mut compressed: Backend) -> Result<Self, Backend>
    where
        Backend: ReadWords<Word, Stack>,
    {
        assert!(State::BITS >= 2 * Word::BITS);
        let state = match Self::read_initial_state(|| compressed.read()) {
            Ok(state) => state,
            Err(_) => return Err(compressed),
        };
        Ok(Self {
            bulk: compressed,
            state,
            phantom: PhantomData,
        })
    }
pub fn from_compressed ( mut compressed : Backend ) -> Result < Self , Backend > where Backend : ReadWords < Word , Stack > , { assert ! ( State BITS 2 Word BITS ) ; let state = match Self :: read_initial_state ( | | compressed . read ( ) ) { Ok ( state ) => state , Err ( _ ) => return Err ( compressed ) , } ; Ok ( Self { bulk : compressed , state , phantom : PhantomData , } ) }
Creates an ANS stack with some initial compressed data.
Creates an ANS stack with some initial compressed data .
compressed
Backend
compressed
Backend