pub struct CodecAssembly { /* private fields */ }Expand description
The road one decoded value is assembled by, and the posture it stands under.
§Bounds
The road is an associated road on the owner’s own type, so a free function is unwritable here rather than refused: that is the shape a decode road can call without learning where the owner’s module sits.
Implementations§
Source§impl CodecAssembly
impl CodecAssembly
Sourcepub fn stated(road: &str, posture: AssemblyPosture) -> Result<Self, CodecError>
pub fn stated(road: &str, posture: AssemblyPosture) -> Result<Self, CodecError>
The assembly road, under the posture the caller stated.
§Errors
Returns CodecIssue::AssemblyRoadAbsent where the road states no spelling, and CodecIssue::AssemblyRoadNotAnIdentifier where the spelling cannot name a rendered item — not one Rust identifier, or a keyword the language already took.
Sourcepub const fn posture(&self) -> &AssemblyPosture
pub const fn posture(&self) -> &AssemblyPosture
The posture that road stands under.
Trait Implementations§
Source§impl Clone for CodecAssembly
impl Clone for CodecAssembly
Source§fn clone(&self) -> CodecAssembly
fn clone(&self) -> CodecAssembly
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodecAssembly
impl Debug for CodecAssembly
impl Eq for CodecAssembly
Source§impl Hash for CodecAssembly
impl Hash for CodecAssembly
Source§impl PartialEq for CodecAssembly
impl PartialEq for CodecAssembly
impl StructuralPartialEq for CodecAssembly
Auto Trait Implementations§
impl Freeze for CodecAssembly
impl RefUnwindSafe for CodecAssembly
impl Send for CodecAssembly
impl Sync for CodecAssembly
impl Unpin for CodecAssembly
impl UnsafeUnpin for CodecAssembly
impl UnwindSafe for CodecAssembly
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