enum CreationDisposition {
CreateAlways,
CreateNew,
OpenAlways,
OpenExisting,
TruncateExisting,
}Variants§
CreateAlways
Truncates the file if it exists; create it if it is missing.
CreateNew
Fails if the file already exists; create it if it is missing.
OpenAlways
Create the file if it is missing.
OpenExisting
Fail if the file is missing.
TruncateExisting
Truncates the file if it exists; fails if it is missing.
Implementations§
Source§impl CreationDisposition
impl CreationDisposition
fn new<'tcx>( value: u32, ecx: &mut MiriInterpCx<'tcx>, ) -> InterpResult<'tcx, CreationDisposition>
Trait Implementations§
Source§impl Clone for CreationDisposition
impl Clone for CreationDisposition
impl Copy for CreationDisposition
Source§impl Debug for CreationDisposition
impl Debug for CreationDisposition
Source§impl PartialEq for CreationDisposition
impl PartialEq for CreationDisposition
impl StructuralPartialEq for CreationDisposition
Auto Trait Implementations§
impl DynSend for CreationDisposition
impl DynSync for CreationDisposition
impl Freeze for CreationDisposition
impl RefUnwindSafe for CreationDisposition
impl Send for CreationDisposition
impl Sync for CreationDisposition
impl Unpin for CreationDisposition
impl UnsafeUnpin for CreationDisposition
impl UnwindSafe for CreationDisposition
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
CreateAlways: 0 bytesCreateNew: 0 bytesOpenAlways: 0 bytesOpenExisting: 0 bytesTruncateExisting: 0 bytes