Debian Codegraph @

src/eui48_1.rs

raw symbols SCIP
1 use bytesrust-analyzer cargo bytes 1.11.1 crate/::BytesMutrust-analyzer cargo bytes 1.11.1 bytes_mut/BytesMut#;
2 use eui48_1rust-analyzer cargo eui48 1.1.0 crate/::MacAddressrust-analyzer cargo eui48 1.1.0 MacAddress#;
3 use postgres_protocolrust-analyzer cargo postgres-protocol 0.6.12 crate/::typesrust-analyzer cargo postgres-protocol 0.6.12 types/;
4 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#;
5
6 use craterust-analyzer cargo postgres-types 0.2.14 crate/::{FromSqlrust-analyzer cargo postgres-types 0.2.14 FromSql#, IsNullrust-analyzer cargo postgres-types 0.2.14 IsNull#, ToSqlrust-analyzer cargo postgres-types 0.2.14 ToSql#, Typerust-analyzer cargo postgres-types 0.2.14 Type#};
7
8 impl<'a> FromSqlrust-analyzer cargo postgres-types 0.2.14 FromSql#<'a> for MacAddressrust-analyzer cargo eui48 1.1.0 MacAddress# {
9 fn from_sqlrust-analyzer cargo postgres-types 0.2.14 eui48_1/impl#[MacAddress][`FromSql<'a>`]from_sql().(_: &Typerust-analyzer cargo postgres-types 0.2.14 Type#, raw: &[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<MacAddressrust-analyzer cargo eui48 1.1.0 MacAddress#, Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send#>> {
10 let bytes = typesrust-analyzer cargo postgres-protocol 0.6.12 types/::macaddr_from_sqlrust-analyzer cargo postgres-protocol 0.6.12 types/macaddr_from_sql().(raw)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
11 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(MacAddressrust-analyzer cargo eui48 1.1.0 MacAddress#::newrust-analyzer cargo eui48 1.1.0 impl#[MacAddress]new().(bytes))
12 }
13
14 acceptsrust-analyzer cargo postgres-types 0.2.14 accepts!!(MACADDRrust-analyzer cargo postgres-types 0.2.14 type_gen/impl#[Type]MACADDR.);
15 }
16
17 impl ToSqlrust-analyzer cargo postgres-types 0.2.14 ToSql# for MacAddressrust-analyzer cargo eui48 1.1.0 MacAddress# {
18 fn to_sqlrust-analyzer cargo postgres-types 0.2.14 eui48_1/impl#[MacAddress][ToSql]to_sql().(&self, _: &Typerust-analyzer cargo postgres-types 0.2.14 Type#, w: &mut BytesMutrust-analyzer cargo bytes 1.11.1 bytes_mut/BytesMut#) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<IsNullrust-analyzer cargo postgres-types 0.2.14 IsNull#, Boxrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc boxed/Box#<dyn Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# + Syncrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Sync# + Sendrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Send#>> {
19 typesrust-analyzer cargo postgres-protocol 0.6.12 types/::macaddr_to_sqlrust-analyzer cargo postgres-protocol 0.6.12 types/macaddr_to_sql().(self.to_arrayrust-analyzer cargo eui48 1.1.0 impl#[MacAddress]to_array().(), w);
20 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(IsNullrust-analyzer cargo postgres-types 0.2.14 IsNull#::Norust-analyzer cargo postgres-types 0.2.14 IsNull#No#)
21 }
22
23 acceptsrust-analyzer cargo postgres-types 0.2.14 accepts!!(MACADDRrust-analyzer cargo postgres-types 0.2.14 type_gen/impl#[Type]MACADDR.);
24 to_sql_checkedrust-analyzer cargo postgres-types 0.2.14 to_sql_checked!!();
25 }