pub struct Code<'c> { /* private fields */ }
Expand description
Implementations§
Source§impl Code<'_>
impl Code<'_>
Sourcepub fn generate_using(method: Method, length: Length) -> Self
pub fn generate_using(method: Method, length: Length) -> Self
Generates Self
using the given method and length.
Sourcepub fn generate(length: Length) -> Self
pub fn generate(length: Length) -> Self
Generates Self
using the default method and the given length.
Sourcepub fn generate_default() -> Self
pub fn generate_default() -> Self
Generates Self
using the default method and length.
Sourcepub fn generate_encode_using(method: Method, count: Count) -> Self
pub fn generate_encode_using(method: Method, count: Count) -> Self
Generates Self
using the given method and bytes count.
Sourcepub fn generate_encode(count: Count) -> Self
pub fn generate_encode(count: Count) -> Self
Generates Self
using the default method and the given bytes count.
Sourcepub fn generate_encode_default() -> Self
pub fn generate_encode_default() -> Self
Generates Self
using the default method and bytes count.
Trait Implementations§
Source§impl IntoStatic for Code<'_>
Available on crate feature static
only.
impl IntoStatic for Code<'_>
Available on crate feature
static
only.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Upgrades
Self
to Self::Static
.Auto Trait Implementations§
impl<'c> Freeze for Code<'c>
impl<'c> RefUnwindSafe for Code<'c>
impl<'c> Send for Code<'c>
impl<'c> Sync for Code<'c>
impl<'c> Unpin for Code<'c>
impl<'c> UnwindSafe for Code<'c>
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