mkutils 0.1.143

Utility methods, traits, and types.
Documentation
#![cfg_attr(docsrs, feature(doc_cfg))]
#![cfg_attr(
    feature = "unstable",
    feature(sliceindex_wrappers, try_trait_v2, try_trait_v2_residual)
)]
#![cfg_attr(
    all(feature = "async", feature = "unstable", feature = "serde"),
    feature(associated_type_defaults)
)] // NOTE-socket-c8f04c

// NOTE-ee355f: this allows [::mkutils] to be used from inside this crate
extern crate self as mkutils;

mod active_vec;
mod fmt;
mod indexed;
mod interval_set;
mod is;
mod macros;
mod read_value;
mod saturating_add_signed;
mod seq_visitor;
mod timestamped;
mod utils;

#[cfg(all(feature = "serde", feature = "tracing"))]
mod as_valuable;

#[cfg(feature = "async")]
mod event;

#[cfg(feature = "tui")]
mod geometry;

#[cfg(feature = "async")]
mod into_stream;

#[cfg(feature = "tui")]
mod key_map;

#[cfg(feature = "unstable")]
mod output;

#[cfg(feature = "async")]
mod process;

#[cfg(feature = "tui")]
mod rgb;

#[cfg(feature = "tui")]
mod rope;

#[cfg(feature = "async")]
mod run_for;

#[cfg(feature = "tui")]
mod screen;

#[cfg(feature = "tui")]
mod scroll_bar;

#[cfg(feature = "tui")]
mod scroll_view;

#[cfg(feature = "tui")]
mod scroll_view_state;

// NOTE-socket-c8f04c
#[cfg(all(feature = "async", feature = "unstable", feature = "serde"))]
mod socket;

#[cfg(feature = "tui")]
mod terminal;

#[cfg(feature = "tracing")]
mod timer;

#[cfg(feature = "tracing")]
mod tracing;

#[cfg(feature = "tui")]
mod transpose;

#[cfg(feature = "unstable")]
pub use crate::output::Output;
#[cfg(all(feature = "async", feature = "unstable", feature = "serde"))] // NOTE-socket-c8f04c
pub use crate::socket::{Request, Socket};
pub use crate::{
    active_vec::ActiveVec,
    fmt::{Debugged, OptionDisplay, ResultDisplay, StatusDisplay},
    indexed::Indexed,
    interval_set::{Interval, IntervalSet},
    read_value::ReadValue,
    saturating_add_signed::SaturatingAddSigned,
    timestamped::Timestamped,
    utils::Utils,
};
#[cfg(feature = "async")]
pub use crate::{
    event::Event,
    process::{Process, ProcessBuilder},
};
#[cfg(feature = "tui")]
pub use crate::{
    geometry::{Orientation, Point, PointIsize, PointU16, PointUsize},
    key_map::{
        key_binding::KeyBinding,
        key_map::{KeyBindingTrie, KeyMap},
        key_map_session::KeyMapSession,
        key_map_state::{KeyMapIncSearch, KeyMapState},
    },
    rgb::Rgb,
    rope::{
        atoms::{Atom, Atoms},
        builder::RopeBuilder,
        chunk::Chunk,
        chunk_extended_grapheme_iter::ChunkExtendedGraphemeIter,
        line::Line,
        lines::Lines,
        rope::Rope,
        text_summary::{DirectedTextSummary, TextSummary},
    },
    screen::{Screen, ScreenConfig, ScreenTerminal, Stdout},
    scroll_view::ScrollView,
    scroll_view_state::{ScrollCountType, ScrollViewState, ScrollWhen},
    terminal::Terminal,
    transpose::Transpose,
};
#[cfg(feature = "tracing")]
pub use crate::{timer::Timer, tracing::Tracing};
pub use mkutils_macros::{
    ConstAssoc, Constructor, Default, FromChain, SaturatingAdd, SaturatingSub, SetVariant, Toggle, TypeAssoc, context,
    tokio_main,
};