#[repr(u8)]pub enum StringOrWorkspace {
Workspace(WorkspaceRef),
String(Spanned<String>),
}Expand description
A value that can be a direct string or inherited from workspace.
Variants§
Workspace(WorkspaceRef)
Inherited from [workspace.package].
String(Spanned<String>)
Direct string value.
Trait Implementations§
Source§impl Clone for StringOrWorkspace
impl Clone for StringOrWorkspace
Source§fn clone(&self) -> StringOrWorkspace
fn clone(&self) -> StringOrWorkspace
Returns a duplicate of the value. Read more
1.0.0 · 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 StringOrWorkspace
impl Debug for StringOrWorkspace
Auto Trait Implementations§
impl Freeze for StringOrWorkspace
impl RefUnwindSafe for StringOrWorkspace
impl Send for StringOrWorkspace
impl Sync for StringOrWorkspace
impl Unpin for StringOrWorkspace
impl UnsafeUnpin for StringOrWorkspace
impl UnwindSafe for StringOrWorkspace
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