Crate zenoh_macros

Source
Expand description

⚠️ WARNING ⚠️

This crate is intended for Zenoh’s internal use.

Click here for Zenoh’s documentation

Macros§

ke
Equivalent to keyexpr::new, but the check is run at compile-time and will throw a compile error in case of failure.
kedefine
Create format modules from a format specification.
keformat
Write a set of values into a Formatter and then builds it into an OwnedKeyExpr, stopping as soon as a value doesn’t fit the specification for its field.
kewrite
Write a set of values into a Formatter, stopping as soon as a value doesn’t fit the specification for its field. Contrary to keformat doesn’t build the Formatter into a Key Expression.
nonwild_ke
Equivalent to nonwild_keyexpr::new, but the check is run at compile-time and will throw a compile error in case of failure.
rustc_version_release

Attribute Macros§

internal
Adds a #[cfg(feature = "internal")] and #[doc(hidden)] attributes to the item.
internal_config
internal_trait
Macro #[internal_trait] should precede impl Trait for Struct { ... }
unstable
Adds a #[cfg(feature = "unstable")] attribute to the item and appends piece of documentation about the item being unstable.
unstable_doc
Adds only piece of documentation about the item being unstable but no unstable attribute itself. This is useful when the whole crate is supposed to be used in unstable mode only, it makes sense to mention it in dcoumentation for the crate items, but not to add #[cfg(feature = "unstable")] to every item.

Derive Macros§

GenericRuntimeParam
Make the underlying struct Param be generic over any T satisfying a generated trait DefaultParam { fn param() -> Param; }
RegisterParam
Register the input Enum with the struct Param specified in the param attribute