Struct burn_core::module::ConstantRecord
source · pub struct ConstantRecord;Expand description
Record used for constant type implementing the module trait.
Implementations§
Trait Implementations§
source§impl Clone for ConstantRecord
impl Clone for ConstantRecord
source§fn clone(&self) -> ConstantRecord
fn clone(&self) -> ConstantRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ConstantRecord
impl Debug for ConstantRecord
source§impl<'de> Deserialize<'de> for ConstantRecord
impl<'de> Deserialize<'de> for ConstantRecord
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Record for ConstantRecord
impl Record for ConstantRecord
§type Item<S: PrecisionSettings> = ConstantRecord
type Item<S: PrecisionSettings> = ConstantRecord
Type of the item that can be serialized and deserialized.
source§fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
fn into_item<S: PrecisionSettings>(self) -> Self::Item<S>
Convert the current record into the corresponding item that follows the given settings.
source§fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
fn from_item<S: PrecisionSettings>(item: Self::Item<S>) -> Self
Convert the given item into a record.
source§impl Serialize for ConstantRecord
impl Serialize for ConstantRecord
impl Copy for ConstantRecord
Auto Trait Implementations§
impl RefUnwindSafe for ConstantRecord
impl Send for ConstantRecord
impl Sync for ConstantRecord
impl Unpin for ConstantRecord
impl UnwindSafe for ConstantRecord
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