ValueRange (src/lib.rs)

bevy · crates/bevy_annotations/src/lib.rs · rust · Apache-2.0
dev-tools, tag:knn-classified

Defines reflection annotations for numeric ranges, steps, units, etc., used in Bevy editor.

#![cfg_attr(docsrs, feature(doc_cfg))]
// Source: https://github.com/bevyengine/bevy | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
#![forbid(unsafe_code)]
#![doc(
    html_logo_url = "https://bevy.org/assets/icon.png",
    html_favicon_url = "https://bevy.org/assets/icon.png"
)]
#![no_std]

//! Standard ("well-known") reflection annotations for tools such as inspectors and editors.
//!
//! The mechanism lives in [`bevy_reflect`]: custom attributes are attached with
//! `#[reflect(@...)]` on types, fields and variants, and read back with
//! `get_attribute::<T>()`. This crate only defines a shared vocabulary of
//! attribute types, so that tools can agree on what to look for.
//!
//! Several annotations can be attached to the same item.
//!
//! ```
/

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key