pub fn textdomain<T: Into<Vec<u8>>>(domainname: T) -> Result<Vec<u8>, Error>
Expand description
Switch to the specific text domain.
Returns the current domain, after possibly changing it. (There’s no trailing 0 byte in the return value.)
If you want to get current domain, rather than set it, use getters::current_textdomain
.
For more information, see textdomain(3).
§Panics
Panics if domainname
contains an internal 0 byte, as such values can’t be passed to the
underlying C API.