Expand description
A file in a directory
Variants
BTree(File<Node>)
Chain(File<ChainBlock>)
Scalar(File<Scalar>)
Trait Implementations
sourceimpl AsType<File<ChainBlock>> for FileEntry
impl AsType<File<ChainBlock>> for FileEntry
sourcefn as_type(&self) -> Option<&File<ChainBlock>>
fn as_type(&self) -> Option<&File<ChainBlock>>
Borrow this instance as an instance of T
if possible.
sourcefn as_type_mut(&mut self) -> Option<&mut File<ChainBlock>>
fn as_type_mut(&mut self) -> Option<&mut File<ChainBlock>>
Borrow this instance mutably as an instance of T
if possible.
sourcefn into_type(self) -> Option<File<ChainBlock>>
fn into_type(self) -> Option<File<ChainBlock>>
Convert this instance into an instance of T
if possible.
sourceimpl AsType<File<Node>> for FileEntry
impl AsType<File<Node>> for FileEntry
sourcefn as_type_mut(&mut self) -> Option<&mut File<Node>>
fn as_type_mut(&mut self) -> Option<&mut File<Node>>
Borrow this instance mutably as an instance of T
if possible.
sourceimpl AsType<File<Scalar>> for FileEntry
impl AsType<File<Scalar>> for FileEntry
sourceimpl From<File<ChainBlock>> for FileEntry
impl From<File<ChainBlock>> for FileEntry
sourcefn from(t: File<ChainBlock>) -> Self
fn from(t: File<ChainBlock>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl !UnwindSafe for FileEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<F> Match for F
impl<F> Match for F
sourcefn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
fn matches<T>(&self) -> boolwhere
T: TryCastFrom<Self>,
Returns true
if self
can be cast into the target type T
.
sourceimpl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
impl<F, T> TryCastFrom<F> for Twhere
T: CastFrom<F>,
sourcefn can_cast_from(&F) -> bool
fn can_cast_from(&F) -> bool
Test if value
can be cast into Self
.
sourcefn opt_cast_from(f: F) -> Option<T>
fn opt_cast_from(f: F) -> Option<T>
Returns Some(Self)
if the source value can be cast into Self
, otherwise None
.
sourcefn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err>where
OnErr: FnOnce(&T) -> Err,
fn try_cast_from<Err, OnErr>(value: T, on_err: OnErr) -> Result<Self, Err>where
OnErr: FnOnce(&T) -> Err,
Returns Ok(Self)
if the source value can be cast into Self
, otherwise calls on_err
.
sourceimpl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
impl<F, T> TryCastInto<T> for Fwhere
T: TryCastFrom<F>,
sourcefn can_cast_into(&self) -> bool
fn can_cast_into(&self) -> bool
Test if self
can be cast into T
.
sourcefn opt_cast_into(self) -> Option<T>
fn opt_cast_into(self) -> Option<T>
Returns Some(T)
if self
can be cast into T
, otherwise None
.
sourcefn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
fn try_cast_into<Err, OnErr>(self, on_err: OnErr) -> Result<T, Err>where
OnErr: FnOnce(&Self) -> Err,
Returns Ok(T)
if self
can be cast into T
, otherwise calls on_err
.
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more