#[repr(u32)]pub enum SeekOrigin {
Start = 0,
Current = 1,
End = 2,
}
Expand description
The reference point for updating the seek offset. See [File.Seek
].
This enum matches the zx_stream_seek_origin_t
enum.
Variants§
Trait Implementations§
Source§impl Clone for SeekOrigin
impl Clone for SeekOrigin
Source§fn clone(&self) -> SeekOrigin
fn clone(&self) -> SeekOrigin
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SeekOrigin
impl Debug for SeekOrigin
Source§impl Encodable for SeekOrigin
impl Encodable for SeekOrigin
Source§type Encoded = WireSeekOrigin
type Encoded = WireSeekOrigin
The wire type for the value.
§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
encoding instead of calling
encode
. Read moreSource§impl<___E> Encode<___E> for SeekOriginwhere
___E: ?Sized,
impl<___E> Encode<___E> for SeekOriginwhere
___E: ?Sized,
Source§impl From<SeekOrigin> for WireSeekOrigin
impl From<SeekOrigin> for WireSeekOrigin
Source§fn from(natural: SeekOrigin) -> Self
fn from(natural: SeekOrigin) -> Self
Converts to this type from the input type.
Source§impl From<WireSeekOrigin> for SeekOrigin
impl From<WireSeekOrigin> for SeekOrigin
Source§fn from(wire: WireSeekOrigin) -> Self
fn from(wire: WireSeekOrigin) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SeekOrigin
impl PartialEq for SeekOrigin
Source§impl TakeFrom<WireSeekOrigin> for SeekOrigin
impl TakeFrom<WireSeekOrigin> for SeekOrigin
Source§fn take_from(from: &WireSeekOrigin) -> Self
fn take_from(from: &WireSeekOrigin) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreimpl Copy for SeekOrigin
impl Eq for SeekOrigin
impl StructuralPartialEq for SeekOrigin
Auto Trait Implementations§
impl Freeze for SeekOrigin
impl RefUnwindSafe for SeekOrigin
impl Send for SeekOrigin
impl Sync for SeekOrigin
impl Unpin for SeekOrigin
impl UnwindSafe for SeekOrigin
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