Macro guilt_by_association::guilty
[−]
[src]
macro_rules! guilty { ($(#[$attr:meta])* trait $traitname:ident $body:tt) => { ... }; ($(#[$attr:meta])* trait $traitname:ident : $parent:ident $body:tt) => { ... }; ($(#[$attr:meta])* pub trait $traitname:ident $body:tt) => { ... }; ($(#[$attr:meta])* pub $restr:tt trait $traitname:ident $body:tt) => { ... }; ($(#[$attr:meta])* pub trait $traitname:ident : $parent:ident $body:tt) => { ... }; ($(#[$attr:meta])* pub $restr:tt trait $traitname:ident : $parent:ident $body:tt) => { ... }; (impl $traitname:ident for $structname:ident $body:tt) => { ... }; (<$structname:ident as $traitname:ident> :: $constname:ident) => { ... }; ($structname:ident :: $constname:ident) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { $(#[$cattr:meta])* const $constname:ident : $consttype:ty = $constdefault:expr; $($body:tt)* }) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { $(#[$cattr:meta])* const $constname:ident : $consttype:ty; $($body:tt)* }) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { $(#[$fattr:meta])* fn $($body:tt)* }) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { # $($body:tt)* }) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { $(#[$tattr:meta])* type $($body:tt)* }) => { ... }; (INTERNAL: DEFINE TRAIT, [$(#[$attr:meta])*] [$($before:tt)+] [$($traitname:tt)*], { }) => { ... }; (INTERNAL: DEFINE IMPL, $traitname:path, $structname:ident, { $(#[$cattr:meta])* const $constname:ident : $consttype:ty = $constvalue:expr; $($body:tt)* }) => { ... }; (INTERNAL: DEFINE IMPL, $traitname:path, $structname:ident, { $(#[$fattr:meta])* fn $($body:tt)* }) => { ... }; (INTERNAL: DEFINE IMPL, $traitname:path, $structname:ident, { $(#[$tattr:meta])* type $($body:tt)* }) => { ... }; (INTERNAL: DEFINE IMPL, $traitname:path, $structname:ident, { }) => { ... }; (INTERNAL: ACCESS CONST, ($($structname:tt)*), $constname:ident) => { ... }; (INTERNAL: AS ITEM, $i:item) => { ... }; }
Macro for declaring/implementing traits with fake associated consts
See the crate-level documentation for more.