Skip to content

Commit

Permalink
misc. fixes and updates
Browse files Browse the repository at this point in the history
  • Loading branch information
joseluis committed Jan 26, 2025
1 parent 2542142 commit 8d212db
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/data/no.rs → src/data/absence.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// devela::data::value::nodata
// devela::data::absence
//
//! Implements traits for the unit type [`()`] to represent the absence of data.
//
Expand All @@ -7,7 +7,7 @@
use super::DataRaw;
use crate::{DataType, DataTypeCopy, DataValue, DataValueCopy};

/// Represents the absence of data.
/// Represents the absence of some data.
pub type NoData = ();

#[rustfmt::skip]
Expand Down
1 change: 0 additions & 1 deletion src/data/key/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// devela::data::key
//
//! Implementations of key-based storage.
//!
//!
//! Provides tools for mapping, indexing, and efficiently organizing data
//! through unique keys, including maps, sets, and other key-value structures.
Expand Down
1 change: 1 addition & 0 deletions src/data/list/link/reexports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
//! Reexported items.
//

#[cfg(feature = "alloc")]
crate::impl_cdef![<T> Self::new() => LinkedList<T>]; // impl ConstDefault

crate::reexport! { rust: alloc::collections,
Expand Down
1 change: 1 addition & 0 deletions src/data/list/queue/reexports.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use crate::{impl_cdef, reexport};

#[cfg(feature = "alloc")]
impl_cdef![<T> Self::new() => VecDeque<T>]; // impl ConstDefault

reexport! { rust: alloc::collections,
Expand Down
4 changes: 2 additions & 2 deletions src/data/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
// safety
#![cfg_attr(feature = "safe_data", forbid(unsafe_code))]

mod absence; // NoData
mod bit;
mod collection;
mod error;
mod no; // NoData
mod sort;

pub mod hash;
Expand Down Expand Up @@ -40,7 +40,7 @@ crate::items! { // structural access: _mods, _pub_mods, _internals, _all, _alway
pub use {_always::*, _pub_mods::*};

mod _mods { #![allow(unused)]
pub use super::{bit::_all::*, collection::*, error::*, no::*, sort::_all::*};
pub use super::{absence::*, bit::_all::*, collection::*, error::*, sort::_all::*};
}
mod _pub_mods { #![allow(unused)]
pub use super::{
Expand Down
2 changes: 1 addition & 1 deletion src/data/node/index.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// devela::data::collections::index
// devela::data::node::index
//
//! A type that allows indexing nodes.
//
4 changes: 2 additions & 2 deletions src/data/node/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// devela::data::collections::node
// devela::data::node
//
//! Nodes.
//! Abstractions for structured relationships.
//!
//! Nodes are a basic unit used to build more complex structures,
//! like linked lists, graphs and trees.
Expand Down
3 changes: 2 additions & 1 deletion src/data/node/node.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// devela::data::collections::node
// devela::data::node::node
//
//
//! Nodes are a basic unit used to build more complex structures,
//! like linked lists, graphs and trees.
Expand Down
2 changes: 1 addition & 1 deletion src/num/no.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! Allows the unit type [`()`] to represent the absence of a number.
//

/// Represents numeric absence.
/// Represents the absence of a number.
///
/// This can be used anywhere an implementation of [`Num`][super::Num] is expected,
/// since it implements all the numeric traits, but does nothing.
Expand Down

0 comments on commit 8d212db

Please sign in to comment.