Crate clipmdplus_macro

source ·
Expand description

ClipMdPlus Macro Library

The macro crate clipmdplus_macro will have some of it’s macros removed. It exists to create a #[derive(clipboard_thingy, todo clarify…)] I’m learning this feature of RUST, beyond that many of these macros are useful. For example, using macro_rules! would be less restrictive.

use super::super::Name; use super::super::Deserialize_enum; use super::super::Serialize_enum; use super::super::ToString; use super::super::VariantName; use clipmdplus_macro::VariantName;

Macros

  • CamelCase 🔒
    doc todo CamelCase to_camel_case_impl
  • doc todo ScreamingSnakeCase to_screaming_snake_case_impl
  • SnakeCase 🔒
    doc todo SnakeCase
  • csi 🔒
    duplicated mtermion macros: termion’s Create a CSI-introduced sequence.
  • Derive a constant msequence (static) struct.
  • termion’s Derive a CSI sequence struct. derive_csi_sequence!(“Change the cursor style to blinking block”, BlinkingBlock, “\x31 q”);
  • derive_fn 🔒
    derive_fn!(“Get user name.”, ACCT, “get_current_username()”);
  • Derive a non-CSI msequence (static) struct. derive_str_sequence!(“Clear the entire screen.”, All, “2J”);
  • msequence 🔒

Structs

Enums

Functions

Derive Macros