seedkit-core 2.1.1

Core library for SeedKit — realistic database seed data generation
Documentation
1
2
3
4
5
6
7
8
9
pub mod classify;
pub mod client;
pub mod parse;
pub mod prompt;

/// Shorten text for an error message without splitting a UTF-8 character.
pub(crate) fn truncate(s: &str, max: usize) -> &str {
    &s[..s.floor_char_boundary(max)]
}