Docs.rs
syslog-rs-3.0.0
syslog-rs 3.0.0
Permalink
Docs.rs crate page
MPL-2.0
OR
EUPL-1.2
Links
Repository
crates.io
Source
Owners
eesekaj
Dependencies
bitflags ^1
normal
chrono ^0.4
normal
crossbeam-channel ^0.5
normal
optional
futures-rustls ^0.26
normal
optional
nix ^0.30
normal
rustls ^0.23
normal
optional
smol ^2.0
normal
optional
socket2 ^0.5
normal
tokio ^1
normal
optional
tokio-rustls ^0.26
normal
optional
tokio-test ^0.4
dev
Versions
77.29%
of the crate is documented
Platform
i686-unknown-linux-gnu
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
syslog_
rs
3.0.0
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