pub struct HashSetDefiner<'out> {
    pub defines_set: HashSet<String>,
    pub out: &'out mut dyn Write,
}
Available on crate feature headers only.
Expand description

Simplest implementation of a Definer: a HashSet<String>, &'_ mut dyn Write pair.

Fields

defines_set: HashSet<String>out: &'out mut dyn Write

Trait Implementations

Must return true iff an actual insert happened.
Yields a handle to the underlying Writer
Convenience method to perform an .insert() so that if it succeeds (thus guaranteeing the call happens for the first time), it calls write_typedef on itself. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Applies the Compat adapter by value. Read more
Applies the Compat adapter by shared reference. Read more
Applies the Compat adapter by mutable reference. Read more
Available on crate feature alloc only.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Available on crate feature headers only.