Skip to main content

TemplateStorage

Struct TemplateStorage 

Source
pub struct TemplateStorage<const OPS_CAP: usize = TEMPLATE_STORAGE_OPS_CAP, const STRING_CAP: usize = TEMPLATE_STORAGE_STRING_CAP, const DYNAMIC_CAP: usize = TEMPLATE_STORAGE_DYNAMIC_CAP> { /* private fields */ }
Expand description

Const storage for a template.

Implementations§

Source§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>

Source

pub const fn build_from_tree(tree: &'static TemplateRawTree) -> Self

Build storage from a template tree.

Source

pub const fn as_template(&'static self) -> Template

Return this storage as a compact template.

Trait Implementations§

Source§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Clone for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Copy for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>

Auto Trait Implementations§

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Freeze for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: Freeze, ConstVec<&'static str, STRING_CAP>: Freeze, ConstVec<TemplateAnchor, DYNAMIC_CAP>: Freeze,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> RefUnwindSafe for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: RefUnwindSafe, ConstVec<&'static str, STRING_CAP>: RefUnwindSafe, ConstVec<TemplateAnchor, DYNAMIC_CAP>: RefUnwindSafe,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Send for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: Send, ConstVec<&'static str, STRING_CAP>: Send, ConstVec<TemplateAnchor, DYNAMIC_CAP>: Send,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Sync for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: Sync, ConstVec<&'static str, STRING_CAP>: Sync, ConstVec<TemplateAnchor, DYNAMIC_CAP>: Sync,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> Unpin for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: Unpin, ConstVec<&'static str, STRING_CAP>: Unpin, ConstVec<TemplateAnchor, DYNAMIC_CAP>: Unpin,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> UnsafeUnpin for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: UnsafeUnpin, ConstVec<&'static str, STRING_CAP>: UnsafeUnpin, ConstVec<TemplateAnchor, DYNAMIC_CAP>: UnsafeUnpin,

§

impl<const OPS_CAP: usize, const STRING_CAP: usize, const DYNAMIC_CAP: usize> UnwindSafe for TemplateStorage<OPS_CAP, STRING_CAP, DYNAMIC_CAP>
where ConstVec<TemplateOp, OPS_CAP>: UnwindSafe, ConstVec<&'static str, STRING_CAP>: UnwindSafe, ConstVec<TemplateAnchor, DYNAMIC_CAP>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.