pub struct ElementTestParams {
pub width: f32,
pub first_height: f32,
pub full_height: f32,
pub pos: (f32, f32),
pub page_size: (f32, f32),
}Fields§
§width: f32Will be tested with None and this.
first_height: f32§full_height: f32§pos: (f32, f32)§page_size: (f32, f32)Implementations§
Source§impl ElementTestParams
impl ElementTestParams
pub fn configurations(&self) -> impl Iterator<Item = TestConfiguration<'_>>
pub fn run<'a, E: Element>( &'a self, element: &'a E, ) -> impl Iterator<Item = ElementMeasureDrawCompatibilityOutput> + 'a
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ElementTestParams
impl RefUnwindSafe for ElementTestParams
impl Send for ElementTestParams
impl Sync for ElementTestParams
impl Unpin for ElementTestParams
impl UnwindSafe for ElementTestParams
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
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
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().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.