Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

366 B
Raw Blame
use gpui::DefiniteLength;

/// A trait for elements that can have a fixed with. Enables the use of the `width` and `full_width` methods.
pub trait FixedWidth {
    /// Sets the width of the element.
    fn width(self, width: impl Into<DefiniteLength>) -> Self;

    /// Sets the element's width to the full width of its container.
    fn full_width(self) -> Self;
}