[][src]Derive Macro modtype_derive::ModType

#[derive(ModType)]
{
    // Attributes available to this derive:
    #[modtype]
}

Derives following traits.

Attributes

Struct

NameFormatOptional
modulusmodulus = $Lit where $Lit is converted/parsed to an ExprNo
cartridgecartridge = $LitStr where $LitStr is parsed to a PathNo
stdstd = $LitStr where $LitStr is parsed to a PathYes (default = ::std)
num_traitsnum_traits = $LitStr where $LitStr is parsed to a PathYes (default = ::num::traits)
num_integernum_integer = $LitStr where $LitStr is parsed to a PathYes (default = ::num::integer)
num_bigintnum_bigint = $LitStr where $LitStr is parsed to a PathYes (default = ::num::bigint)
num_rationalnum_rational = $LitStr where $LitStr is parsed to a PathYes (default = ::num::rational)
modtypemodtype = $LitStr where $LitStr is parsed to a PathYes (default = ::modtype)
non_static_modulusnon_static_modulusYes

Field

NameFormatOptional
valuevalueNo

Requirements