Module code

Source
Expand description

Code reflective synthesis.
code::{marker, ops, result, util}

Extends: std::{any, clone, convert, default, hint, marker, ops}


Modules§

marker
Marker types, traits and macros.
ops
Overloadable operators.
result
Resolving results.
util
Utility macros and hint functions.

Structs§

ScopeGuard
A guard that executes a callback on drop, using an associated state.
TypeId
core Represents a globally unique identifier for a type.

Enums§

Infallible
🚩 core The error type for errors that can never happen.

Traits§

Any
core A trait to emulate dynamic typing.
AsMut
core Used to do a cheap mutable-to-mutable reference conversion.
AsRef
core Used to do a cheap reference-to-reference conversion.
Clone
core A common trait for the ability to explicitly duplicate an object.
ConstDefault
A trait for giving a type a useful default value in compile-time.
Default
core A trait for giving a type a useful default value.
ExtAny
🌐 Extension trait providing convenience methods for T:Any.
From
core Used to do value-to-value conversions while consuming the input value.
Into
core A value-to-value conversion that consumes the input value.
TryFrom
core Simple and safe type conversions that may fail in a controlled way.
TryInto
core An attempted conversion that consumes self, which may or may not be expensive.

Functions§

any_type_name
core Returns the name of a type as a string slice.
identity
core The identity function. Just returns back its input.

Derive Macros§

Clone
core Derive macro generating an impl of the trait Clone.
Default
core Derive macro generating an impl of the trait Default.