pub struct OptMappedContents { /* private fields */ }Expand description
Variant of MappedStrings that checks at runtime that files are present every time
it is accessed
Trait Implementations§
Source§impl OptContents for OptMappedContents
impl OptContents for OptMappedContents
Source§fn is_skipped_content(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<bool>, Self>
fn is_skipped_content( &self, node: NodeId, ) -> PropertiesResult<'_, Option<bool>, Self>
Returns whether the given node is a skipped content, or
None if out of boundsSource§fn content_length(
&self,
node: NodeId,
) -> PropertiesResult<'_, Option<u64>, Self>
fn content_length( &self, node: NodeId, ) -> PropertiesResult<'_, Option<u64>, Self>
Returns the content’s length, or
None if out of bounds, or u64::MAX if it
is not a content / does not not have a known lengthSource§impl PropertiesBackend for OptMappedContents
impl PropertiesBackend for OptMappedContents
type DataFilesAvailability = OptionalDataFiles
Source§fn map_if_available<T, U>(
v: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'_, T>,
f: impl FnOnce(T) -> U,
) -> <Self::DataFilesAvailability as DataFilesAvailability>::Result<'_, U>
fn map_if_available<T, U>( v: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'_, T>, f: impl FnOnce(T) -> U, ) -> <Self::DataFilesAvailability as DataFilesAvailability>::Result<'_, U>
Source§fn zip_if_available<'err, T1, T2>(
v1: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, T1>,
v2: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, T2>,
) -> <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, (T1, T2)>
fn zip_if_available<'err, T1, T2>( v1: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, T1>, v2: <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, T2>, ) -> <Self::DataFilesAvailability as DataFilesAvailability>::Result<'err, (T1, T2)>
Returns
(v1, v2) if both are available, or an error otherwise Read moreAuto Trait Implementations§
impl Freeze for OptMappedContents
impl !RefUnwindSafe for OptMappedContents
impl Send for OptMappedContents
impl Sync for OptMappedContents
impl Unpin for OptMappedContents
impl !UnwindSafe for OptMappedContents
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, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.