facet-egui 0.1.0

An egui inspector/editor widget for any type that implements Facet
Documentation
#![doc = include_str!("../README.md")]
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

mod layout;
use facet_maybe_mut as maybe_mut;
mod probe;
pub use maybe_mut::MaybeMut;

pub use probe::{FacetProbe, MaybeMutT};

facet::define_attr_grammar! {
    ns "egui";
    crate_path ::facet_egui;

    pub enum Attr {
        /// Skips a field or type in the UI and does not display it
        Skip,
        /// Mark a field as readonly
        Readonly,
        /// Rename the field or type in the UI
        Rename(&'static str),
        /// Expand all sections recursively
        ExpandAll,
        /// Displays the underlying type using its [`Display`](core::fmt::Display) implementation.
        AsDisplay,
    }
}