Docs.rs
syslog-rs-1.0.1
syslog-rs 1.0.1
Docs.rs crate page
EUPL-1.2
Links
Repository
crates.io
Source
Owners
eesekaj
Dependencies
async-trait ^0.1
normal
bitflags ^1
normal
chrono ^0.4
normal
nix ^0.29
normal
rustls ^0.23
normal
tokio ^1
normal
tokio-rustls ^0.26
normal
tokio-test ^0.4
dev
Versions
72.2%
of the crate is documented
This release has been yanked, go to latest version
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
syslog_
rs
1.0.1
truncate
Sections
Arguments
Returns
In syslog_
rs::
common
syslog_rs
::
common
Function
truncate
Copy item path
Source
pub fn truncate(lt: &
str
) -> &
str
Expand description
This function trancated 1 last UTF8 character from the string.
§
Arguments
lt
- a string which is trucated
§
Returns
A reference to the ctruncated string