simple-fatfs 0.1.0-alpha.2

A simple-to-use FAT filesystem library for Rust (mainly targeted at embedded systems)
Documentation
//! Type aliases for various important data types for readability
//!
//! Some Index types have their corresponding Count type
//! (e.g. [`ClusterIndex`] and [`ClusterCount`]).
//! These are both under the hood aliased to the same data type.
//! The only reason to keep the separated is too make the code more readable:
//! for example, if a function returns a [`ClusterIndex`], we know that it
//! returns the index of a particular cluster, whereas if it were to return
//! [`ClusterCount`], it could return how many clusters are needed for
//! a particular action or belong to an object.

pub(crate) type ClusterIndex = u32;
pub(crate) type ClusterCount = ClusterIndex;

pub(crate) type SectorIndex = u32;
pub(crate) type SectorCount = SectorIndex;

pub(crate) type EntryIndex = u16;
pub(crate) type EntryCount = EntryIndex;

pub(crate) type FATEntryIndex = u32;
pub(crate) type FATEntryCount = FATEntryIndex;

pub(crate) type FATEntryValue = u32;

pub(crate) type FileSize = u32;