Lines Matching defs:ByteSlice
20 ByteSlice, ByteSliceMut, CloneableByteSlice, CopyableByteSlice, IntoByteSlice,
57 /// pub fn parse<B: ByteSlice>(bytes: B) -> Option<Ref<B, UdpPacket>> {
142 impl<B: ByteSlice, T: ?Sized> Ref<B, T> {
143 /// Access the byte slice as a [`ByteSlice`].
148 /// [`ByteSlice`] other than `ByteSlice` methods (for example, via
151 /// `as_byte_slice` promises to return a `ByteSlice` whose referent is
155 pub(crate) unsafe fn as_byte_slice(&self) -> &impl ByteSlice {
157 // those on `ByteSlice`. Since `B: ByteSlice`, dereference stability
158 // guarantees that calling `ByteSlice` methods will not change the
183 // those on `ByteSliceMut`. Since `B: ByteSlice`, dereference
184 // stability guarantees that calling `ByteSlice` methods will not
209 // those on `IntoByteSlice`. Since `B: ByteSlice`, dereference
210 // stability guarantees that calling `ByteSlice` methods will not
235 // those on `IntoByteSliceMut`. Since `B: ByteSlice`, dereference
236 // stability guarantees that calling `ByteSlice` methods will not
273 B: ByteSlice,
355 B: ByteSlice,
430 // `ByteSlice` and its applicable subtraits guarantee that the stored
546 // `SplitByteSlice` and `ByteSlice` contracts preserve the established
657 // `SplitByteSlice` and `ByteSlice` contracts preserve the established
682 B: ByteSlice,
756 // `source.deref()`. `ByteSlice` and its applicable subtraits guarantee
1070 B: ByteSlice,
1104 // `ByteSlice`.
1152 B: ByteSlice,
1170 // `ByteSlice`.
1174 // valid size and alignment for `T`. By safety invariant on `ByteSlice`,
1205 // `ByteSlice`, we know that this is preserved via `.deref()`. Writing
1214 B: ByteSlice,
1251 // `ByteSlice`.
1270 // on `ByteSlice`, these are preserved through `.deref()`, so this
1341 // invariant on `ByteSlice`, these are preserved through `.deref_mut()`,
1353 B: ByteSlice,
1365 B: ByteSlice,
1377 B: ByteSlice,
1384 B: ByteSlice,
1395 B: ByteSlice,
1408 B: ByteSlice,