Struct std::ffi::FromVecWithNulError 1.58.0[−][src]
pub struct FromVecWithNulError { /* fields omitted */ }
Expand description
指示 nul 字节不在预期位置中的错误。
用于创建 CString
的 vector 的末尾必须只有一个 nul 字节。
此错误是由 CString::from_vec_with_nul
方法创建的。
有关更多信息,请参见其文档。
Examples
use std::ffi::{CString, FromVecWithNulError};
let _: FromVecWithNulError = CString::from_vec_with_nul(b"f\0oo".to_vec()).unwrap_err();
RunImplementations
Trait Implementations
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
此方法测试 self
和 other
值是否相等,并由 ==
使用。 Read more
此方法测试 !=
。