pub struct FlakeReference { /* private fields */ }Implementations§
Source§impl FlakeReference
impl FlakeReference
Sourcepub fn parse_with_fragment(
fetch_settings: &FetchersSettings,
flake_settings: &FlakeSettings,
flags: &FlakeReferenceParseFlags,
reference: &str,
) -> Result<(FlakeReference, String)>
pub fn parse_with_fragment( fetch_settings: &FetchersSettings, flake_settings: &FlakeSettings, flags: &FlakeReferenceParseFlags, reference: &str, ) -> Result<(FlakeReference, String)>
Parse a flake reference from a string.
The string must be a valid flake reference, such as github:owner/repo.
It may also be suffixed with a # and a fragment, such as github:owner/repo#something,
in which case, the returned string will contain the fragment.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FlakeReference
impl RefUnwindSafe for FlakeReference
impl !Send for FlakeReference
impl !Sync for FlakeReference
impl Unpin for FlakeReference
impl UnwindSafe for FlakeReference
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