2024-09-25 01:18:01 +00:00
|
|
|
use std::io::{self, Read};
|
2022-05-02 21:51:45 +00:00
|
|
|
|
|
|
|
pub struct Aaaaaaa;
|
|
|
|
|
|
|
|
impl Aaaaaaa {
|
|
|
|
pub fn bbbbbbb(self) -> u32 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
pub fn ccccccc(&self) -> bool {
|
|
|
|
true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Read for Aaaaaaa {
|
2024-09-25 01:18:01 +00:00
|
|
|
fn read(&mut self, out: &mut [u8]) -> io::Result<usize> {
|
2022-05-02 21:51:45 +00:00
|
|
|
Ok(out.len())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct Ddddddd<T>(T);
|
|
|
|
|
|
|
|
impl<T: Read> Ddddddd<T> {
|
|
|
|
pub fn eeeeeee(_: T) -> u64 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
pub fn fffffff(_: bool) -> u64 {
|
|
|
|
1
|
|
|
|
}
|
|
|
|
pub fn ggggggg(self) -> u64 {
|
|
|
|
1
|
|
|
|
}
|
2024-06-03 07:35:56 +00:00
|
|
|
pub fn hhhhhhh() -> Self
|
|
|
|
where
|
|
|
|
T: Default,
|
|
|
|
{
|
2022-05-02 21:51:45 +00:00
|
|
|
Ddddddd(T::default())
|
|
|
|
}
|
|
|
|
}
|