Fix broken rustdoc links
This commit is contained in:
parent
e6148b587f
commit
6d941407fe
3 changed files with 12 additions and 12 deletions
|
|
@ -660,9 +660,9 @@ impl EvalState {
|
||||||
///
|
///
|
||||||
/// Returns [`Err`] if evaluation failed or the value is not an attribute set.
|
/// Returns [`Err`] if evaluation failed or the value is not an attribute set.
|
||||||
///
|
///
|
||||||
/// Returns [`Ok(None)`] if the attribute is not present.
|
/// Returns `Ok(None)` if the attribute is not present.
|
||||||
///
|
///
|
||||||
/// Returns [`Ok(Some(value))`] if the attribute is present.
|
/// Returns `Ok(Some(value))` if the attribute is present.
|
||||||
#[doc(alias = "nix_get_attr_byname")]
|
#[doc(alias = "nix_get_attr_byname")]
|
||||||
#[doc(alias = "get_attr_byname")]
|
#[doc(alias = "get_attr_byname")]
|
||||||
#[doc(alias = "get_attr_opt")]
|
#[doc(alias = "get_attr_opt")]
|
||||||
|
|
@ -712,11 +712,11 @@ impl EvalState {
|
||||||
/// Extracts an element from a [list][`ValueType::List`] Nix value by index.
|
/// Extracts an element from a [list][`ValueType::List`] Nix value by index.
|
||||||
///
|
///
|
||||||
/// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) and verifies the value is a list.
|
/// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) and verifies the value is a list.
|
||||||
/// Forces evaluation of the selected element, similar to [`require_attrs_select`].
|
/// Forces evaluation of the selected element, similar to [`Self::require_attrs_select`].
|
||||||
///
|
///
|
||||||
/// Returns [`Ok(Some(value))`] if the element is found.
|
/// Returns `Ok(Some(value))` if the element is found.
|
||||||
///
|
///
|
||||||
/// Returns [`Ok(None)`] if the index is out of bounds.
|
/// Returns `Ok(None)` if the index is out of bounds.
|
||||||
///
|
///
|
||||||
/// Returns [`Err`] if evaluation failed, the element contains an error (e.g., `throw`), or the value is not a list.
|
/// Returns [`Err`] if evaluation failed, the element contains an error (e.g., `throw`), or the value is not a list.
|
||||||
#[doc(alias = "get")]
|
#[doc(alias = "get")]
|
||||||
|
|
@ -908,7 +908,7 @@ impl EvalState {
|
||||||
/// Applies a function to an argument and returns the result.
|
/// Applies a function to an argument and returns the result.
|
||||||
///
|
///
|
||||||
/// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application.
|
/// Forces [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application.
|
||||||
/// For a lazy version, see [`new_value_apply`].
|
/// For a lazy version, see [`Self::new_value_apply`].
|
||||||
#[doc(alias = "nix_value_call")]
|
#[doc(alias = "nix_value_call")]
|
||||||
#[doc(alias = "value_call")]
|
#[doc(alias = "value_call")]
|
||||||
#[doc(alias = "apply")]
|
#[doc(alias = "apply")]
|
||||||
|
|
@ -990,7 +990,7 @@ impl EvalState {
|
||||||
/// Applies a function to an argument lazily, creating a [thunk](https://nix.dev/manual/nix/latest/language/evaluation.html#laziness).
|
/// Applies a function to an argument lazily, creating a [thunk](https://nix.dev/manual/nix/latest/language/evaluation.html#laziness).
|
||||||
///
|
///
|
||||||
/// Does not force [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application.
|
/// Does not force [evaluation](https://nix.dev/manual/nix/latest/language/evaluation.html) of the function application.
|
||||||
/// For an eager version, see [`call`].
|
/// For an eager version, see [`Self::call`].
|
||||||
#[doc(alias = "lazy_apply")]
|
#[doc(alias = "lazy_apply")]
|
||||||
#[doc(alias = "thunk_apply")]
|
#[doc(alias = "thunk_apply")]
|
||||||
#[doc(alias = "defer_call")]
|
#[doc(alias = "defer_call")]
|
||||||
|
|
@ -1037,10 +1037,10 @@ impl EvalState {
|
||||||
Ok(value)
|
Ok(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a new [attribute set][`ValueType::Attrs`] Nix value from an iterator of name-value pairs.
|
/// Creates a new [attribute set][`ValueType::AttrSet`] Nix value from an iterator of name-value pairs.
|
||||||
///
|
///
|
||||||
/// Accepts any iterator that yields `(String, Value)` pairs and has an exact size.
|
/// Accepts any iterator that yields `(String, Value)` pairs and has an exact size.
|
||||||
/// Common usage includes [`Vec`], [`HashMap`], and array literals.
|
/// Common usage includes [`Vec`], [`std::collections::HashMap`], and array literals.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ pub struct Value {
|
||||||
impl Value {
|
impl Value {
|
||||||
/// Take ownership of a new [`Value`].
|
/// Take ownership of a new [`Value`].
|
||||||
///
|
///
|
||||||
/// This does not call [`nix_c_raw::gc_incref`], but does call [`nix_c_raw::nix_gc_decref`] when [dropped][`Drop`].
|
/// This does not call [`nix_bindings_util_sys::gc_incref`], but does call [`nix_bindings_util_sys::gc_decref`] when [dropped][`Drop`].
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
|
@ -84,7 +84,7 @@ impl Value {
|
||||||
|
|
||||||
/// Borrow a reference to a [`Value`].
|
/// Borrow a reference to a [`Value`].
|
||||||
///
|
///
|
||||||
/// This calls [`nix_c_raw::value_incref`], and the returned Value will call [`nix_c_raw::value_decref`] when dropped.
|
/// This calls [`nix_bindings_util_sys::value_incref`], and the returned Value will call [`nix_bindings_util_sys::value_decref`] when dropped.
|
||||||
///
|
///
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
||||||
|
|
|
||||||
|
|
@ -101,7 +101,7 @@ pub struct Store {
|
||||||
impl Store {
|
impl Store {
|
||||||
/// Open a store.
|
/// Open a store.
|
||||||
///
|
///
|
||||||
/// See [nix_c_raw::store_open] for more information.
|
/// See [`nix_bindings_util_sys::store_open`] for more information.
|
||||||
#[doc(alias = "nix_store_open")]
|
#[doc(alias = "nix_store_open")]
|
||||||
pub fn open<'a, 'b>(
|
pub fn open<'a, 'b>(
|
||||||
url: Option<&str>,
|
url: Option<&str>,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue