pub fn encode<S>(source: S) -> Encoder<S>
where S : Iterator<Item=bool> {
	let runs_only = RunIterator::from_bits(source);
	let with_frames = WithFrames::new(runs_only);
	Encoder {
		encoder_impl: with_frames,
	}
}
/// Encodes a given bit stream into a compact byte representation.
/// `source` can be any iterator that yields `bool` values.
Encodes a given bit stream into a compact byte representation.
`source` can be any iterator that yields `bool` values.
Encodes a given bit stream into a compact byte representation . ` source ` can be any iterator that yields ` bool ` values .
pub fn encode<S>(source: S) -> Encoder<S>
where S : Iterator<Item=bool> {
	let runs_only = RunIterator::from_bits(source);
	let with_frames = WithFrames::new(runs_only);
	Encoder {
		encoder_impl: with_frames,
	}
}
pub fn encode < S > ( source : S ) -> Encoder < S > where S : Iterator < Item = bool > { let runs_only = RunIterator :: from_bits ( source ) ; let with_frames = WithFrames :: new ( runs_only ) ; Encoder { encoder_impl : with_frames , } }
Encodes a given bit stream into a compact byte representation.
Encodes a given bit stream into a compact byte representation .
source
S