pub struct YarnWorkspace(/* private fields */);Implementations§
Source§impl YarnWorkspace
impl YarnWorkspace
Sourcepub fn new(input: &str) -> Result<YarnWorkspace, YarnTextError>
pub fn new(input: &str) -> Result<YarnWorkspace, YarnTextError>
Creates non-empty Yarn text metadata.
§Errors
Returns YarnTextError::Empty when input is empty after trimming.
Trait Implementations§
Source§impl Clone for YarnWorkspace
impl Clone for YarnWorkspace
Source§fn clone(&self) -> YarnWorkspace
fn clone(&self) -> YarnWorkspace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for YarnWorkspace
impl Debug for YarnWorkspace
Source§impl Hash for YarnWorkspace
impl Hash for YarnWorkspace
Source§impl Ord for YarnWorkspace
impl Ord for YarnWorkspace
Source§fn cmp(&self, other: &YarnWorkspace) -> Ordering
fn cmp(&self, other: &YarnWorkspace) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for YarnWorkspace
impl PartialEq for YarnWorkspace
Source§fn eq(&self, other: &YarnWorkspace) -> bool
fn eq(&self, other: &YarnWorkspace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for YarnWorkspace
impl PartialOrd for YarnWorkspace
impl Eq for YarnWorkspace
impl StructuralPartialEq for YarnWorkspace
Auto Trait Implementations§
impl Freeze for YarnWorkspace
impl RefUnwindSafe for YarnWorkspace
impl Send for YarnWorkspace
impl Sync for YarnWorkspace
impl Unpin for YarnWorkspace
impl UnsafeUnpin for YarnWorkspace
impl UnwindSafe for YarnWorkspace
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