MCPcopy Create free account
hub / github.com/Recordscript/recordscript / valid

Method valid

libs/scrap/src/common/mod.rs:158–163  ·  view source on GitHub ↗
(&'a self)

Source from the content-addressed store, hash-verified

156#[cfg(not(any(target_os = "ios")))]
157impl Frame<'_> {
158 pub fn valid<'a>(&'a self) -> bool {
159 match self {
160 Frame::PixelBuffer(pixelbuffer) => !pixelbuffer.data().is_empty(),
161 Frame::Texture(texture) => !texture.is_null(),
162 }
163 }
164
165 pub fn to<'a>(
166 &'a self,

Callers

nothing calls this directly

Calls 3

is_emptyMethod · 0.80
dataMethod · 0.45
is_nullMethod · 0.45

Tested by

no test coverage detected