Struct hotg_rune_core::InlineResource
source · [−]#[repr(C)]pub struct InlineResource<const NAME_LEN: usize, const DATA_LEN: usize> { /* private fields */ }
Expand description
A (&str, &[u8])
which stores the first field (name) and second field
(data) inline and can be read out of memory using
decode_inline_resource()
.
Implementations
sourceimpl<const NAME_LEN: usize, const DATA_LEN: usize> InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> InlineResource<NAME_LEN, DATA_LEN>
Trait Implementations
sourceimpl<const NAME_LEN: usize, const DATA_LEN: usize> Clone for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> Clone for InlineResource<NAME_LEN, DATA_LEN>
sourcefn clone(&self) -> InlineResource<NAME_LEN, DATA_LEN>
fn clone(&self) -> InlineResource<NAME_LEN, DATA_LEN>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<const NAME_LEN: usize, const DATA_LEN: usize> Debug for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> Debug for InlineResource<NAME_LEN, DATA_LEN>
sourceimpl<const NAME_LEN: usize, const DATA_LEN: usize> PartialEq<InlineResource<NAME_LEN, DATA_LEN>> for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> PartialEq<InlineResource<NAME_LEN, DATA_LEN>> for InlineResource<NAME_LEN, DATA_LEN>
sourcefn eq(&self, other: &InlineResource<NAME_LEN, DATA_LEN>) -> bool
fn eq(&self, other: &InlineResource<NAME_LEN, DATA_LEN>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &InlineResource<NAME_LEN, DATA_LEN>) -> bool
fn ne(&self, other: &InlineResource<NAME_LEN, DATA_LEN>) -> bool
This method tests for !=
.
impl<const NAME_LEN: usize, const DATA_LEN: usize> StructuralPartialEq for InlineResource<NAME_LEN, DATA_LEN>
Auto Trait Implementations
impl<const NAME_LEN: usize, const DATA_LEN: usize> RefUnwindSafe for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> Send for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> Sync for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> Unpin for InlineResource<NAME_LEN, DATA_LEN>
impl<const NAME_LEN: usize, const DATA_LEN: usize> UnwindSafe for InlineResource<NAME_LEN, DATA_LEN>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more