Docs.rs
grit-lib-0.5.0
grit-lib 0.5.0
Permalink
Docs.rs crate page
MIT
20 June 2026
Links
Repository
crates.io
Source
Owners
schacon
Dependencies
base64 ^0.22
normal
optional
encoding_rs ^0.8.35
normal
filetime ^0.2
normal
flate2 ^1
normal
hex ^0.4
normal
icu_normalizer ^2.0.0
normal
imara-diff ^0.2
normal
libc ^0.2
normal
merge3 ^0.2
normal
regex ^1
normal
sha1 ^0.11
normal
sha2 ^0.11
normal
shell-words ^1.1
normal
similar ^3
normal
tempfile ^3
normal
thiserror ^2
normal
time ^0.3
normal
unicode-width ^0.2
normal
ureq ^3.3
normal
optional
url ^2.5
normal
nix ^0.31
normal
windows-sys ^0.61
normal
Versions
86.3%
of the crate is documented
Platform
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
Skip to main content
encode_display_name
grit_
lib
0.5.0
In grit_
lib::
porcelain::
format_
patch
grit_lib
::
porcelain
::
format_patch
Function
encode_
display_
name
Copy item path
Source
pub fn encode_display_name(name: &
str
) ->
String
Expand description
Encode a display name portion of an email address.
Non-ASCII → RFC 2047 UTF-8 quoted-printable
Contains RFC 822 specials → RFC 822 quoted string
Otherwise → plain