MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / get_layout

Method get_layout

src/layout/responsive.rs:28–32  ·  view source on GitHub ↗
(&self, layouts: &'a [(Breakpoint, T)])

Source from the content-addressed store, hash-verified

26 }
27
28 pub fn get_layout<'a, T>(&self, layouts: &'a [(Breakpoint, T)]) -> Option<&'a T> {
29 layouts.iter()
30 .find(|(bp, _)| self.current == *bp)
31 .map(|(_, layout)| layout)
32 }
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected