Files
ansi_term
anyhow
atty
bitflags
bstr
byteset
search
unicode
byteorder
cargo_metadata
cargo_preflight
cfg_if
clap
app
args
completions
csv
csv_core
darling
darling_core
ast
codegen
error
options
usage
util
darling_macro
dlopen
raw
symbor
wrapper
dlopen_derive
fnv
getrandom
glob
heck
ident_case
indoc
itoa
lazy_static
lerp
lerp_derive
libc
unix
libm
math
acos.rsacosf.rsacosh.rsacoshf.rsasin.rsasinf.rsasinh.rsasinhf.rsatan.rsatan2.rsatan2f.rsatanf.rsatanh.rsatanhf.rscbrt.rscbrtf.rsceil.rsceilf.rscopysign.rscopysignf.rscos.rscosf.rscosh.rscoshf.rserf.rserff.rsexp.rsexp10.rsexp10f.rsexp2.rsexp2f.rsexpf.rsexpm1.rsexpm1f.rsexpo2.rsfabs.rsfabsf.rsfdim.rsfdimf.rsfenv.rsfloor.rsfloorf.rsfma.rsfmaf.rsfmax.rsfmaxf.rsfmin.rsfminf.rsfmod.rsfmodf.rsfrexp.rsfrexpf.rshypot.rshypotf.rsilogb.rsilogbf.rsj0.rsj0f.rsj1.rsj1f.rsjn.rsjnf.rsk_cos.rsk_cosf.rsk_expo2.rsk_expo2f.rsk_sin.rsk_sinf.rsk_tan.rsk_tanf.rsldexp.rsldexpf.rslgamma.rslgamma_r.rslgammaf.rslgammaf_r.rslog.rslog10.rslog10f.rslog1p.rslog1pf.rslog2.rslog2f.rslogf.rsmod.rsmodf.rsmodff.rsnextafter.rsnextafterf.rspow.rspowf.rsrem_pio2.rsrem_pio2_large.rsrem_pio2f.rsremainder.rsremainderf.rsremquo.rsremquof.rsround.rsroundf.rsscalbn.rsscalbnf.rssin.rssincos.rssincosf.rssinf.rssinh.rssinhf.rssqrt.rssqrtf.rstan.rstanf.rstanh.rstanhf.rstgamma.rstgammaf.rstrunc.rstruncf.rs
maplit
memchr
num_traits
open
pest
iterators
unicode
pest_derive
pest_generator
pest_meta
ppv_lite86
preflight
preflight_macros
proc_macro2
proc_macro_error
proc_macro_error_attr
quote
rand
distributions
weighted
rngs
seq
rand_chacha
rand_core
regex_automata
ryu
semver
semver_parser
serde
de
private
ser
serde_derive
serde_json
smawk
strsim
structopt
structopt_derive
syn
attr.rsbuffer.rscustom_keyword.rscustom_punctuation.rsdata.rsderive.rsdiscouraged.rserror.rsexport.rsexpr.rsext.rsgenerics.rsgroup.rsident.rslib.rslifetime.rslit.rslookahead.rsmac.rsmacros.rsop.rsparse.rsparse_macro_input.rsparse_quote.rspath.rsprint.rspunctuated.rssealed.rsspan.rsspanned.rsthread.rstoken.rsty.rs
termcolor
textwrap
timescale
timescale_macros
typenum
ucd_trie
unicode_segmentation
unicode_width
unicode_xid
unindent
uom
si
acceleration.rsamount_of_substance.rsangle.rsangular_acceleration.rsangular_jerk.rsangular_velocity.rsarea.rsavailable_energy.rscapacitance.rscatalytic_activity.rscatalytic_activity_concentration.rscurvature.rselectric_charge.rselectric_current.rselectric_potential.rselectrical_conductance.rselectrical_resistance.rsenergy.rsforce.rsfrequency.rsheat_capacity.rsheat_flux_density.rsheat_transfer.rsinductance.rsinformation.rsinformation_rate.rsjerk.rslength.rsluminance.rsluminous_intensity.rsmagnetic_flux.rsmagnetic_flux_density.rsmass.rsmass_concentration.rsmass_density.rsmass_rate.rsmod.rsmolar_concentration.rsmolar_energy.rsmolar_mass.rsmomentum.rspower.rsprefix.rspressure.rsradiant_exposure.rsratio.rssolid_angle.rsspecific_heat_capacity.rstemperature_interval.rsthermal_conductivity.rsthermodynamic_temperature.rstime.rstorque.rsvelocity.rsvolume.rsvolume_rate.rs
uuid
vec_map
>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
use syn::Generics; use Result; /// Creates an instance by parsing an entire generics declaration, including the /// `where` clause. pub trait FromGenerics: Sized { fn from_generics(generics: &Generics) -> Result<Self>; } impl FromGenerics for () { fn from_generics(_generics: &Generics) -> Result<Self> { Ok(()) } } impl FromGenerics for Generics { fn from_generics(generics: &Generics) -> Result<Self> { Ok(generics.clone()) } } impl<T: FromGenerics> FromGenerics for Result<T> { fn from_generics(generics: &Generics) -> Result<Self> { Ok(FromGenerics::from_generics(generics)) } }