pub trait EncodeProperties: Sized {
// Required methods
fn encode(
self,
encoder: Vec<PropertyEncoder>,
) -> Result<Vec<EncodedProperty>, MltError>;
fn encode_with_profile(
self,
profile: &PropertyProfile,
) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>;
fn encode_auto(
self,
) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>;
}Expand description
Extension trait for consuming-style encoding of staged property columns.
Required Methods§
Sourcefn encode(
self,
encoder: Vec<PropertyEncoder>,
) -> Result<Vec<EncodedProperty>, MltError>
fn encode( self, encoder: Vec<PropertyEncoder>, ) -> Result<Vec<EncodedProperty>, MltError>
Encode with a specific encoder, consuming self.
Sourcefn encode_with_profile(
self,
profile: &PropertyProfile,
) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>
fn encode_with_profile( self, profile: &PropertyProfile, ) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>
Profile-driven encode, consuming self.
Sourcefn encode_auto(
self,
) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>
fn encode_auto( self, ) -> Result<(Vec<EncodedProperty>, Vec<PropertyEncoder>), MltError>
Automatic encoding, consuming self.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.