pub trait OptContents: MaybeContents + PropertiesBackend {
type Data<'a>: GetIndex<Output = u64> + 'a
where Self: 'a;
// Required methods
fn is_skipped_content(&self) -> PropertiesResult<'_, Self::Data<'_>, Self>;
fn content_length(&self) -> PropertiesResult<'_, Self::Data<'_>, Self>;
}
Expand description
Trait implemented by all implementors of MaybeContents
but NoContents
Required Associated Types§
Required Methods§
fn is_skipped_content(&self) -> PropertiesResult<'_, Self::Data<'_>, Self>
fn content_length(&self) -> PropertiesResult<'_, Self::Data<'_>, 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.