fixed.rs

 1use gpui::DefiniteLength;
 2
 3/// A trait for elements that have a fixed with.
 4pub trait FixedWidth {
 5    /// Sets the width of the element.
 6    fn width(self, width: DefiniteLength) -> Self;
 7
 8    /// Sets the element's width to the full width of its container.
 9    fn full_width(self) -> Self;
10}