pub trait ClassEntries {
// Required methods
fn any_present(&self) -> bool;
fn write_entries(self, cx: &Cx, writer: &mut ClassWriter<'_, '_>);
}Expand description
One or more class list entries written through a ClassWriter.
This is the bound Class places on its contents. It is implemented for
every ClassViewParts value, for tuples of entries, and for arrays and
Vecs of entries, so a class list holds a mix of static and dynamic
entries inline without allocating for itself.
Required Methods§
Sourcefn any_present(&self) -> bool
fn any_present(&self) -> bool
Returns whether any entry contributes to the class list.
Sourcefn write_entries(self, cx: &Cx, writer: &mut ClassWriter<'_, '_>)
fn write_entries(self, cx: &Cx, writer: &mut ClassWriter<'_, '_>)
Writes every entry through writer.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".