pub struct StoredBinData {
pub bytes: Vec<u8>,
pub compressed: bool,
}Expand description
원본 컨테이너에 저장된 형태 그대로의 BinData 바이트 (압축 해제 없음).
[#2550] 상한 초과 항목을 저장 경로가 손실 없이 통과시킬 때 쓴다. 저장 형태를 그대로 다시 쓰려면 그 바이트가 압축된 상태인지를 함께 알아야 한다 — 소비 측이 기대하는 압축 상태와 다르면 압축 바이트를 원본으로 오해해 조용히 깨지기 때문이다.
Fields§
§bytes: Vec<u8>저장된 형태의 바이트. 암호 문서는 복호화(크기 1:1)만 거친다.
compressed: boolbytes 가 압축된 상태인지 여부.
Trait Implementations§
Source§impl Clone for StoredBinData
impl Clone for StoredBinData
Auto Trait Implementations§
impl Forget for StoredBinData
impl Freeze for StoredBinData
impl Move for StoredBinData
impl RefUnwindSafe for StoredBinData
impl Send for StoredBinData
impl Sync for StoredBinData
impl Unpin for StoredBinData
impl UnsafeUnpin for StoredBinData
impl UnwindSafe for StoredBinData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.