Skip to main content

FieldAccess

Trait FieldAccess 

Source
pub trait FieldAccess<'de, 's> {
    type Error: Error;
    type ContentDeserializer: Deserializer<'de, Error = Self::Error>;

    // Required methods
    fn src(&self) -> &'s str;
    fn dst(&self) -> impl Iterator<Item = &'s str>;
    fn desc(&self) -> Option<&'s str>;
    fn dst_desc(&self) -> Option<impl Iterator<Item = &'s str>>;
    fn content(self) -> Self::ContentDeserializer;
}
Expand description

Field name, desc and comment accessor.

Required Associated Types§

Source

type Error: Error

Error type.

Source

type ContentDeserializer: Deserializer<'de, Error = Self::Error>

Type of deserializer of the element’s contents.

Required Methods§

Source

fn src(&self) -> &'s str

Source simple name.

Source

fn dst(&self) -> impl Iterator<Item = &'s str>

Destination simple names.

Source

fn desc(&self) -> Option<&'s str>

Descriptor of this field as FieldType shown in JVMS.

Source

fn dst_desc(&self) -> Option<impl Iterator<Item = &'s str>>

Descriptor of this field’s destinations as FieldType shown in JVMS.

Source

fn content(self) -> Self::ContentDeserializer

Returns the content deserializer for further deserialization of this field.

It may only contain comments.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§