pub struct PackSource {
pub name: String,
pub text: Arc<str>,
}Expand description
One pack input: a name (path as authored, or builtin:…) plus its text.
Fields§
§name: StringDisplay name (file path as authored, or builtin:<name>).
text: Arc<str>The raw YAML text.
Trait Implementations§
Source§impl Clone for PackSource
impl Clone for PackSource
Source§fn clone(&self) -> PackSource
fn clone(&self) -> PackSource
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 moreAuto Trait Implementations§
impl Freeze for PackSource
impl RefUnwindSafe for PackSource
impl Send for PackSource
impl Sync for PackSource
impl Unpin for PackSource
impl UnsafeUnpin for PackSource
impl UnwindSafe for PackSource
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