rust_widgets 0.9.6

Pure Rust cross-platform native GUI library with hardware-adaptive rendering, 60+ widgets, touch/gesture support, i18n, and SVG-pipeline-accurate output
//! Object system and identity management.
mod object_base;
mod properties;
pub use crate::core::ObjectId;
pub use object_base::Object;
pub use properties::PropertyValue;

#[cfg(test)]
mod tests {
    use super::*;

    #[test]
    fn object_creation() {
        let obj = Object::new("test");
        assert_eq!(obj.class_name(), "test");
    }
    #[test]
    fn object_id_unique() {
        let o1 = Object::new("a");
        let o2 = Object::new("b");
        assert_ne!(o1.id(), o2.id());
    }
}