pub enum SeekFrom {
SET(usize),
CURRENT(isize),
END(isize),
}
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SeekFrom
impl RefUnwindSafe for SeekFrom
impl Send for SeekFrom
impl Sync for SeekFrom
impl Unpin for SeekFrom
impl UnwindSafe for SeekFrom
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for Twhere
T: Any + Send,
impl<T> DowncastSend for Twhere
T: Any + Send,
Source§fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>
Converts
Box<Trait>
(where Trait: DowncastSend
) to Box<dyn Any + Send>
, which
can then be downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
impl<T> DowncastSync for Twhere
T: Any + Send + Sync,
Source§fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>
Converts
Box<Trait>
(where Trait: DowncastSync
) to Box<dyn Any + Send + Sync>
,
which can then be downcast
into Box<ConcreteType>
where ConcreteType
implements
Trait
.Source§fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>
Converts
Arc<Trait>
(where Trait: DowncastSync
) to Arc<Any>
, which can then be
downcast
into Arc<ConcreteType>
where ConcreteType
implements Trait
.