23 lines
501 B
Rust
23 lines
501 B
Rust
// rustfmt-format_code_in_doc_comments: true
|
|
// rustfmt-doc_comment_code_block_width: 50
|
|
|
|
/// ```rust
|
|
/// impl Test {
|
|
/// pub const fn from_bytes(
|
|
/// v: &[u8],
|
|
/// ) -> Result<Self, ParserError> {
|
|
/// Self::from_bytes_manual_slice(
|
|
/// v,
|
|
/// 0,
|
|
/// v.len(),
|
|
/// )
|
|
/// }
|
|
/// }
|
|
/// ```
|
|
|
|
impl Test {
|
|
pub const fn from_bytes(v: &[u8]) -> Result<Self, ParserError> {
|
|
Self::from_bytes_manual_slice(v, 0, v.len())
|
|
}
|
|
}
|