pub enum Wrapper {
Bottom {
left: String,
right: String,
},
Nested {
left: Box<Self>,
right: Box<Self>,
},
}
Variants§
Implementations§
Source§impl Wrapper
impl Wrapper
pub fn wrap(self, other: Self) -> Self
pub fn new(left: impl Into<String>, right: impl Into<String>) -> Self
pub fn std_vec() -> Self
pub fn custom_vec(left: impl Into<String>) -> Self
pub fn std_map() -> Self
pub fn custom_map(left: impl Into<String>) -> Self
pub fn tuple() -> Self
pub fn option() -> Self
pub fn apply(&self, item: String) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Wrapper
impl RefUnwindSafe for Wrapper
impl Send for Wrapper
impl Sync for Wrapper
impl Unpin for Wrapper
impl UnwindSafe for Wrapper
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