Skip to content

Commit

Permalink
Fix cargo doc
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Oct 27, 2024
1 parent b9f8856 commit 4f2bd3f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use super::{
types::{BufWriter, EncodedEntryMeta, EntryFlags},
};

/// An entry can be inserted into the WALs through [`Batch`](super::batch::Batch).
/// An entry can be inserted into the WALs through [`Batch`].
pub struct BatchEntry<K, V, P> {
pub(crate) key: K,
pub(crate) value: Option<V>,
Expand Down
6 changes: 3 additions & 3 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ where
///
/// This option corresponds to the `MAP_STACK` flag on Linux. It has no effect on Windows.
///
/// This option has no effect on file-backed memory maps and vec backed [`Wal`](crate::Wal).
/// This option has no effect on file-backed memory maps and vec backed `Wal`.
///
/// ## Example
///
Expand All @@ -598,7 +598,7 @@ where
/// default is requested. The requested length should be a multiple of this, or the mapping
/// will fail.
///
/// This option has no effect on file-backed memory maps and vec backed [`Wal`](crate::Wal).
/// This option has no effect on file-backed memory maps and vec backed `Wal`.
///
/// ## Example
///
Expand All @@ -619,7 +619,7 @@ where
///
/// This option corresponds to the `MAP_POPULATE` flag on Linux. It has no effect on Windows.
///
/// This option has no effect on vec backed [`Wal`](crate::Wal).
/// This option has no effect on vec backed `Wal`.
///
/// ## Example
///
Expand Down
6 changes: 3 additions & 3 deletions src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ impl Options {
///
/// This option corresponds to the `MAP_STACK` flag on Linux. It has no effect on Windows.
///
/// This option has no effect on file-backed memory maps and vec backed [`Wal`](crate::Wal).
/// This option has no effect on file-backed memory maps and vec backed `Wal`.
///
/// ## Example
///
Expand All @@ -518,7 +518,7 @@ impl Options {
/// default is requested. The requested length should be a multiple of this, or the mapping
/// will fail.
///
/// This option has no effect on file-backed memory maps and vec backed [`Wal`](crate::Wal).
/// This option has no effect on file-backed memory maps and vec backed `Wal`.
///
/// ## Example
///
Expand All @@ -539,7 +539,7 @@ impl Options {
///
/// This option corresponds to the `MAP_POPULATE` flag on Linux. It has no effect on Windows.
///
/// This option has no effect on vec backed [`Wal`](crate::Wal).
/// This option has no effect on vec backed `Wal`.
///
/// ## Example
///
Expand Down
4 changes: 2 additions & 2 deletions src/wal/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ where
/// Inserts a key-value pair into the WAL. This method
/// allows the caller to build the key in place.
///
/// See also [`insert_with_value_builder`](Wal::insert_with_value_builder) and [`insert_with_builders`](Wal::insert_with_builders).
/// See also [`insert_with_value_builder`](Writer::insert_with_value_builder) and [`insert_with_builders`](Writer::insert_with_builders).
#[inline]
fn insert_with_key_builder<'a, E>(
&'a mut self,
Expand All @@ -438,7 +438,7 @@ where
/// Inserts a key-value pair into the WAL. This method
/// allows the caller to build the value in place.
///
/// See also [`insert_with_key_builder`](Wal::insert_with_key_builder) and [`insert_with_builders`](Wal::insert_with_builders).
/// See also [`insert_with_key_builder`](Writer::insert_with_key_builder) and [`insert_with_builders`](Writer::insert_with_builders).
#[inline]
fn insert_with_value_builder<'a, E>(
&'a mut self,
Expand Down
24 changes: 12 additions & 12 deletions src/wal/multiple_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ where

/// Returns the first key-value pair in the map. The key in this pair is the minimum key in the wal.
///
/// Compared to [`first`](MultipleVersionWalReader::first), this method returns a versioned item, which means that the returned item
/// Compared to [`first`](Reader::first), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
#[inline]
fn first_versioned(
Expand Down Expand Up @@ -280,7 +280,7 @@ where

/// Returns the last key-value pair in the map. The key in this pair is the maximum key in the wal.
///
/// Compared to [`last`](MultipleVersionWalReader::last), this method returns a versioned item, which means that the returned item
/// Compared to [`last`](Reader::last), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
#[inline]
fn last_versioned(
Expand Down Expand Up @@ -321,7 +321,7 @@ where

/// Returns `true` if the key exists in the WAL.
///
/// Compared to [`contains_key`](MultipleVersionWalReader::contains_key), this method returns `true` even if the latest is marked as removed.
/// Compared to [`contains_key`](Reader::contains_key), this method returns `true` even if the latest is marked as removed.
#[inline]
fn contains_key_versioned<'a, Q>(&'a self, version: u64, key: &Q) -> bool
where
Expand Down Expand Up @@ -354,7 +354,7 @@ where

/// Returns `true` if the key exists in the WAL.
///
/// Compared to [`contains_key_by_bytes`](MultipleVersionWalReader::contains_key_by_bytes), this method returns `true` even if the latest is marked as removed.
/// Compared to [`contains_key_by_bytes`](Reader::contains_key_by_bytes), this method returns `true` even if the latest is marked as removed.
///
/// ## Safety
/// - The given `key` must be valid to construct to `K::Ref` without remaining.
Expand Down Expand Up @@ -392,7 +392,7 @@ where

/// Gets the value associated with the key.
///
/// Compared to [`get`](MultipleVersionWalReader::get), this method returns a versioned item, which means that the returned item
/// Compared to [`get`](Reader::get), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
#[inline]
fn get_versioned<'a, Q>(
Expand Down Expand Up @@ -445,7 +445,7 @@ where

/// Gets the value associated with the key.
///
/// Compared to [`get_by_bytes`](MultipleVersionWalReader::get_by_bytes), this method returns a versioned item, which means that the returned item
/// Compared to [`get_by_bytes`](Reader::get_by_bytes), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
///
/// ## Safety
Expand Down Expand Up @@ -499,7 +499,7 @@ where

/// Returns a value associated to the highest element whose key is below the given bound.
///
/// Compared to [`upper_bound`](MultipleVersionWalReader::upper_bound), this method returns a versioned item, which means that the returned item
/// Compared to [`upper_bound`](Reader::upper_bound), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
#[inline]
fn upper_bound_versioned<'a, Q>(
Expand Down Expand Up @@ -554,7 +554,7 @@ where
/// Returns a value associated to the highest element whose key is below the given bound.
/// If no such element is found then `None` is returned.
///
/// Compared to [`upper_bound_by_bytes`](MultipleVersionWalReader::upper_bound_by_bytes), this method returns a versioned item, which means that the returned item
/// Compared to [`upper_bound_by_bytes`](Reader::upper_bound_by_bytes), this method returns a versioned item, which means that the returned item
///
/// ## Safety
/// - The given `key` in `Bound` must be valid to construct to `K::Ref` without remaining.
Expand Down Expand Up @@ -608,7 +608,7 @@ where
/// Returns a value associated to the lowest element whose key is above the given bound.
/// If no such element is found then `None` is returned.
///
/// Compared to [`lower_bound`](MultipleVersionWalReader::lower_bound), this method returns a versioned item, which means that the returned item
/// Compared to [`lower_bound`](Reader::lower_bound), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
#[inline]
fn lower_bound_versioned<'a, Q>(
Expand Down Expand Up @@ -664,7 +664,7 @@ where
/// Returns a value associated to the lowest element whose key is above the given bound.
/// If no such element is found then `None` is returned.
///
/// Compared to [`lower_bound_by_bytes`](MultipleVersionWalReader::lower_bound_by_bytes), this method returns a versioned item, which means that the returned item
/// Compared to [`lower_bound_by_bytes`](Reader::lower_bound_by_bytes), this method returns a versioned item, which means that the returned item
/// may already be marked as removed.
///
/// ## Safety
Expand Down Expand Up @@ -750,7 +750,7 @@ where
/// Inserts a key-value pair into the WAL. This method
/// allows the caller to build the key in place.
///
/// See also [`insert_with_value_builder`](Wal::insert_with_value_builder) and [`insert_with_builders`](Wal::insert_with_builders).
/// See also [`insert_with_value_builder`](Writer::insert_with_value_builder) and [`insert_with_builders`](Writer::insert_with_builders).
#[inline]
fn insert_with_key_builder<'a, E>(
&'a mut self,
Expand All @@ -770,7 +770,7 @@ where
/// Inserts a key-value pair into the WAL. This method
/// allows the caller to build the value in place.
///
/// See also [`insert_with_key_builder`](Wal::insert_with_key_builder) and [`insert_with_builders`](Wal::insert_with_builders).
/// See also [`insert_with_key_builder`](Writer::insert_with_key_builder) and [`insert_with_builders`](Writer::insert_with_builders).
#[inline]
fn insert_with_value_builder<'a, E>(
&'a mut self,
Expand Down

0 comments on commit 4f2bd3f

Please sign in to comment.