GeneratedFileAuxData

Trait GeneratedFileAuxData 

Source
pub trait GeneratedFileAuxData:
    Debug
    + Sync
    + Send
    + Serialize
    + Deserialize {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn eq(&self, other: &dyn GeneratedFileAuxData) -> bool;
    fn hash_value(&self) -> u64;
}
Expand description

A trait for arbitrary data that a macro generates along with the generated file.

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn eq(&self, other: &dyn GeneratedFileAuxData) -> bool

Source

fn hash_value(&self) -> u64

Returns a hash value for this aux data. This is used to make the containing structs hashable. Implementations should ensure that equal objects have equal hash values.

Trait Implementations§

Source§

impl<'typetag> Serialize for dyn GeneratedFileAuxData + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn GeneratedFileAuxData + Send + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn GeneratedFileAuxData + Send + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'typetag> Serialize for dyn GeneratedFileAuxData + Sync + 'typetag

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more

Implementors§