pub struct FlakeReference { /* private fields */ }Expand description
An unresolved flake reference.
Obtain one via FlakeReference::parse, then pass it to
LockedFlake::lock (or LockFlags::add_input_override).
Implementations§
Source§impl FlakeReference
impl FlakeReference
Sourcepub fn parse(
context: &Arc<Context>,
fetch_settings: &FetchersSettings,
flake_settings: &FlakeSettings,
parse_flags: &FlakeReferenceParseFlags,
s: &str,
) -> Result<(Self, String)>
pub fn parse( context: &Arc<Context>, fetch_settings: &FetchersSettings, flake_settings: &FlakeSettings, parse_flags: &FlakeReferenceParseFlags, s: &str, ) -> Result<(Self, String)>
Parse a flake reference string into a FlakeReference.
Returns both the parsed reference and any fragment that followed a #
in the input string. For references without a fragment the second
element is an empty string.
§Errors
Returns an error if the C API call fails or returns a null pointer.
Trait Implementations§
Source§impl Drop for FlakeReference
impl Drop for FlakeReference
impl Send for FlakeReference
Auto Trait Implementations§
impl Freeze for FlakeReference
impl RefUnwindSafe for FlakeReference
impl !Sync for FlakeReference
impl Unpin for FlakeReference
impl UnsafeUnpin 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