remove non_exhaustive from Hints, upd docs

This commit is contained in:
griffi-gh 2024-03-06 17:52:34 +01:00
parent 68c0e8417a
commit 758b28d235

View file

@ -2,8 +2,8 @@
use glam::Vec2; use glam::Vec2;
// #[non_exhaustive]
#[derive(Default)] #[derive(Default)]
#[non_exhaustive]
pub struct Hints { pub struct Hints {
pub inner_content_size: Option<Vec2>, pub inner_content_size: Option<Vec2>,
pub inner_content_size_cache: Option<Vec<Vec2>>, pub inner_content_size_cache: Option<Vec<Vec2>>,
@ -23,6 +23,7 @@ pub struct Response {
/// If true, the element should always cause the content to wrap to the next line\ /// If true, the element should always cause the content to wrap to the next line\
/// (the element itself gets wrapped to the next line too) /// (the element itself gets wrapped to the next line too)
/// You should almost never set this ///
/// You should almost never set this, and the exact behavior may change in the future
pub should_wrap: bool, pub should_wrap: bool,
} }