Skip to main content

facet_egui/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3
4extern crate alloc;
5
6mod layout;
7use facet_maybe_mut as maybe_mut;
8mod probe;
9pub use maybe_mut::MaybeMut;
10
11pub use probe::{FacetProbe, MaybeMutT};
12
13facet::define_attr_grammar! {
14    ns "egui";
15    crate_path ::facet_egui;
16
17    pub enum Attr {
18        /// Skips a field or type in the UI and does not display it
19        Skip,
20        /// Mark a field as readonly
21        Readonly,
22        /// Rename the field or type in the UI
23        Rename(&'static str),
24        /// Expand all sections recursively
25        ExpandAll,
26        /// Displays the underlying type using its [`Display`](core::fmt::Display) implementation.
27        AsDisplay,
28    }
29}