pub trait WithFallbackAnnotations<'own, ErrorT, InnerT> {
// Required method
fn with_fallback_annotations(
&'own mut self,
annotations: Option<&'own Annotations>,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>;
// Provided methods
fn with_fallback_annotations_from_field<StructT>(
&'own mut self,
struct: &'own StructT,
name: &str,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
where StructT: AnnotatedStruct { ... }
fn with_fallback_annotations_from_struct<StructT>(
&'own mut self,
struct: &'own StructT,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
where StructT: AnnotatedStruct { ... }
}Expand description
With fallback annotations.
Required Methods§
Sourcefn with_fallback_annotations(
&'own mut self,
annotations: Option<&'own Annotations>,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
fn with_fallback_annotations( &'own mut self, annotations: Option<&'own Annotations>, ) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>
With fallback annotations.
Provided Methods§
Sourcefn with_fallback_annotations_from_field<StructT>(
&'own mut self,
struct: &'own StructT,
name: &str,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>where
StructT: AnnotatedStruct,
fn with_fallback_annotations_from_field<StructT>(
&'own mut self,
struct: &'own StructT,
name: &str,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>where
StructT: AnnotatedStruct,
With fallback annotations from field.
Sourcefn with_fallback_annotations_from_struct<StructT>(
&'own mut self,
struct: &'own StructT,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>where
StructT: AnnotatedStruct,
fn with_fallback_annotations_from_struct<StructT>(
&'own mut self,
struct: &'own StructT,
) -> ErrorReceiverWithFallbackAnnotations<'own, InnerT>where
StructT: AnnotatedStruct,
With fallback annotations from struct.
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.