Debian Codegraph @

src/bytestream/writer/std_writer.rs

raw symbols SCIP
1 #![cfg(feature = "std")]
2
3 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::iorust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/::Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#;
4
5 use craterust-analyzer cargo zune-core 0.5.1 crate/::bytestreamrust-analyzer cargo zune-core 0.5.1 bytestream/::ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#;
6
7 impl<T: Writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#> craterust-analyzer cargo zune-core 0.5.1 crate/::bytestreamrust-analyzer cargo zune-core 0.5.1 bytestream/::ZByteWriterTraitrust-analyzer cargo zune-core 0.5.1 bytestream/traits/ZByteWriterTrait# for T {
8 fn write_bytesrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]write_bytes().(&mut self, buf: &[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<usize, ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#> {
9 self.writerust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#write().(buf).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#::StdIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#StdIoError#)
10 }
11
12 fn write_all_bytesrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]write_all_bytes().(&mut self, buf: &[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#> {
13 self.write_allrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#write_all().(buf).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#::StdIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#StdIoError#)
14 }
15
16 fn write_const_bytesrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]write_const_bytes().<const N: usize>(&mut self, buf: &[u8; N]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#> {
17 self.write_all_bytesrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]write_all_bytes().(buf)
18 }
19 fn flush_bytesrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]flush_bytes().(&mut self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#> {
20 self.flushrust-analyzer cargo std https://github.com/rust-lang/rust/library/std io/Write#flush().().map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#::StdIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#StdIoError#)
21 }
22 fn reserve_capacityrust-analyzer cargo zune-core 0.5.1 bytestream/writer/std_writer/impl#[T][ZByteWriterTrait]reserve_capacity().(&mut self, _: usize) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), ZByteIoErrorrust-analyzer cargo zune-core 0.5.1 bytestream/reader/ZByteIoError#> {
23 // we can't reserve capacity, sorry to implementations where this
24 // matters
25 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
26 }
27 }