pub struct Line { /* private fields */ }
Expand description
The structure represent a vertical or horizontal line.
Implementations§
Source§impl Line
impl Line
Sourcepub const fn new(
main: Option<char>,
intersection: Option<char>,
connector1: Option<char>,
connector2: Option<char>,
) -> Self
pub const fn new( main: Option<char>, intersection: Option<char>, connector1: Option<char>, connector2: Option<char>, ) -> Self
Creates a new Line
object.
Sourcepub const fn full(
main: char,
intersection: char,
connector1: char,
connector2: char,
) -> Self
pub const fn full( main: char, intersection: char, connector1: char, connector2: char, ) -> Self
Creates a new Line
object with all chars set.
Trait Implementations§
impl Copy for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more