pub trait EditorImplementation:
Send
+ Sync
+ Sized
+ RefUnwindSafe
+ 'static {
const USEABLE: bool = true;
// Required methods
fn edit<S: Read + Any>(
stream: S,
mime_type: String,
details: InitializationDetails,
) -> Result<Self, ProcessError>;
fn create<B: ByteData>(
mime_type: String,
new_image: NewImage<B>,
encoding_options: EncodingOptions,
) -> Result<EncodedImage<B>, ProcessError>;
fn apply_complete<B: ByteData>(
&self,
operations: Operations,
) -> Result<CompleteEditorOutput<B>, ProcessError>;
// Provided method
fn apply_sparse<B: ByteData>(
&self,
operations: Operations,
) -> Result<SparseEditorOutput<B>, ProcessError> { ... }
}Expand description
Implement this trait to create an image editor
Provided Associated Constants§
Required Methods§
fn edit<S: Read + Any>( stream: S, mime_type: String, details: InitializationDetails, ) -> Result<Self, ProcessError>
fn create<B: ByteData>( mime_type: String, new_image: NewImage<B>, encoding_options: EncodingOptions, ) -> Result<EncodedImage<B>, ProcessError>
fn apply_complete<B: ByteData>( &self, operations: Operations, ) -> Result<CompleteEditorOutput<B>, ProcessError>
Provided Methods§
fn apply_sparse<B: ByteData>( &self, operations: Operations, ) -> Result<SparseEditorOutput<B>, ProcessError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".