use proc_macro::TokenStream; use syn::parse::Error as ParseError;
mod utils;
#[cfg(any(feature = "add_assign", feature = "mul_assign"))] mod add_assign_like; #[cfg(any(
feature = "add",
feature = "add_assign",
feature = "mul",
feature = "mul_assign",
))] mod add_helpers; #[cfg(any(feature = "add", feature = "mul"))] mod add_like; #[cfg(feature = "as_mut")] mod as_mut; #[cfg(feature = "as_ref")] mod as_ref; #[cfg(feature = "constructor")] mod constructor; #[cfg(feature = "deref")] mod deref; #[cfg(feature = "deref_mut")] mod deref_mut; #[cfg(feature = "error")] mod error; #[cfg(any(feature = "debug", feature = "display"))] mod fmt; #[cfg(feature = "from")] mod from; #[cfg(feature = "from_str")] mod from_str; #[cfg(feature = "index")] mod index; #[cfg(feature = "index_mut")] mod index_mut; #[cfg(feature = "into")] mod into; #[cfg(feature = "into_iterator")] mod into_iterator; #[cfg(feature = "is_variant")] mod is_variant; #[cfg(feature = "mul_assign")] mod mul_assign_like; #[cfg(any(feature = "mul", feature = "mul_assign"))] mod mul_helpers; #[cfg(feature = "mul")] mod mul_like; #[cfg(feature = "not")] mod not_like; #[cfg(any(
feature = "debug",
feature = "display",
feature = "from",
feature = "into",
))] pub(crate) mod parsing; #[cfg(feature = "sum")] mod sum_like; #[cfg(feature = "try_into")] mod try_into; #[cfg(feature = "try_unwrap")] mod try_unwrap; #[cfg(feature = "unwrap")] mod unwrap;
// This trait describes the possible return types of // the derives. A derive can generally be infallible and // return a TokenStream, or it can be fallible and return // a Result<TokenStream, syn::parse::Error>. trait Output { fn process(self) -> TokenStream;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.