Debian Codegraph @

src/uuid_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 postgres_protocolrust-analyzer cargo postgres-protocol 0.6.12 crate/::typesrust-analyzer cargo postgres-protocol 0.6.12 types/;
3 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#;
4 use uuid_1rust-analyzer cargo uuid 1.23.2 crate/::Uuidrust-analyzer cargo uuid 1.23.2 Uuid#;
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 Uuidrust-analyzer cargo uuid 1.23.2 Uuid# {
9 fn from_sqlrust-analyzer cargo postgres-types 0.2.14 uuid_1/impl#[Uuid][`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#<Uuidrust-analyzer cargo uuid 1.23.2 Uuid#, 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/::uuid_from_sqlrust-analyzer cargo postgres-protocol 0.6.12 types/uuid_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#(Uuidrust-analyzer cargo uuid 1.23.2 Uuid#::from_bytesrust-analyzer cargo uuid 1.23.2 builder/impl#[Uuid]from_bytes().(bytes))
12 }
13
14 acceptsrust-analyzer cargo postgres-types 0.2.14 accepts!!(UUIDrust-analyzer cargo postgres-types 0.2.14 type_gen/impl#[Type]UUID.);
15 }
16
17 impl ToSqlrust-analyzer cargo postgres-types 0.2.14 ToSql# for Uuidrust-analyzer cargo uuid 1.23.2 Uuid# {
18 fn to_sqlrust-analyzer cargo postgres-types 0.2.14 uuid_1/impl#[Uuid][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/::uuid_to_sqlrust-analyzer cargo postgres-protocol 0.6.12 types/uuid_to_sql().(*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/deref/impl#[`&T`][Deref]deref().self.as_bytesrust-analyzer cargo uuid 1.23.2 impl#[Uuid]as_bytes().(), 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!!(UUIDrust-analyzer cargo postgres-types 0.2.14 type_gen/impl#[Type]UUID.);
24 to_sql_checkedrust-analyzer cargo postgres-types 0.2.14 to_sql_checked!!();
25 }