pub struct BoxHeader {
pub box_type: BoxType,
pub box_size: BoxSize,
}
Expand description
BaseBox
に共通のヘッダー
Fields§
§box_type: BoxType
ボックスの種別
box_size: BoxSize
ボックスのサイズ
Implementations§
Source§impl BoxHeader
impl BoxHeader
Sourcepub fn external_size(self) -> usize
pub fn external_size(self) -> usize
ヘッダーをエンコードした際のバイト数を返す
Sourcepub fn with_box_payload_reader<T, R: Read, F>(
self,
reader: R,
f: F,
) -> Result<T>
pub fn with_box_payload_reader<T, R: Read, F>( self, reader: R, f: F, ) -> Result<T>
このヘッダーに対応するボックスのペイロード部分をデコードするためのリーダーを引数にして、指定された関数を呼び出す
Trait Implementations§
impl Copy for BoxHeader
impl Eq for BoxHeader
impl StructuralPartialEq for BoxHeader
Auto Trait Implementations§
impl Freeze for BoxHeader
impl RefUnwindSafe for BoxHeader
impl Send for BoxHeader
impl Sync for BoxHeader
impl Unpin for BoxHeader
impl UnwindSafe for BoxHeader
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