refactor to use common result type

This commit is contained in:
Vukašin Stepanović
2023-02-14 22:56:03 +00:00
parent 145cf704fe
commit 8ee616d96b
160 changed files with 829 additions and 901 deletions

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
use crate::Exceptions;
use crate::common::Result;
use super::EncoderContext;
pub trait Encoder {
fn getEncodingMode(&self) -> usize;
fn encode(&self, context: &mut EncoderContext) -> Result<(), Exceptions>;
fn encode(&self, context: &mut EncoderContext) -> Result<()>;
}