[−][src]Trait yarte::TemplateFixedTrait
Template trait
Required methods
unsafe fn call<'call>(
&self,
buf: &'call mut [MaybeUninit<u8>]
) -> Option<&'call [u8]>
&self,
buf: &'call mut [MaybeUninit<u8>]
) -> Option<&'call [u8]>
Writes to buffer
Safety
Not respect the lifetime bounds it's possible borrow mut when it's borrow
ⓘThis example is not tested
let buf = TemplateFixedTrait::call(&mut [MaybeUninit::uninit(); N]).expect("buffer overflow");
unsafe fn ccall(self, buf: &mut [MaybeUninit<u8>]) -> Option<&[u8]>
Writes to buffer and drop
Safety
Not respect the lifetime bounds it's possible borrow mut when it's borrow
ⓘThis example is not tested
let buf = TemplateFixedTrait::ccall(&mut [MaybeUninit::uninit(); N]).expect("buffer overflow");