Struct alloc::ffi::FromVecWithNulError
1.64.0 · source · pub struct FromVecWithNulError { /* private fields */ }
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§
1.58.0 · source§impl FromVecWithNulError
impl FromVecWithNulError
Trait Implementations§
source§impl Clone for FromVecWithNulError
impl Clone for FromVecWithNulError
source§fn clone(&self) -> FromVecWithNulError
fn clone(&self) -> FromVecWithNulError
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moresource§impl Debug for FromVecWithNulError
impl Debug for FromVecWithNulError
1.58.0 · source§impl Display for FromVecWithNulError
impl Display for FromVecWithNulError
1.58.0 · source§impl Error for FromVecWithNulError
impl Error for FromVecWithNulError
impl Eq for FromVecWithNulError
impl StructuralEq for FromVecWithNulError
impl StructuralPartialEq for FromVecWithNulError
Auto Trait Implementations§
impl RefUnwindSafe for FromVecWithNulError
impl Send for FromVecWithNulError
impl Sync for FromVecWithNulError
impl Unpin for FromVecWithNulError
impl UnwindSafe for FromVecWithNulError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值中借用。 Read more