Struct unsegen::container::boxdrawing::LineCell [−][src]
pub struct LineCell { /* fields omitted */ }
Expand description
A single box character, initially empty.
Implementations
impl LineCell
[src]
impl LineCell
[src]pub fn empty() -> Self
[src]
pub fn empty() -> Self
[src]Create an empty box drawing cell (i.e., a space character)
Add segments using set
.
pub fn to_grapheme_cluster(self) -> GraphemeCluster
[src]
pub fn to_grapheme_cluster(self) -> GraphemeCluster
[src]Convert the cell to a grapheme cluster (always safe).
pub fn set(&mut self, segment: LineSegment, ltype: LineType) -> &mut Self
[src]
pub fn set(&mut self, segment: LineSegment, ltype: LineType) -> &mut Self
[src]Set one of the four segments of the cell to the specified type.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LineCell
impl Send for LineCell
impl Sync for LineCell
impl Unpin for LineCell
impl UnwindSafe for LineCell
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more