MCPcopy Create free account
hub / github.com/PerroEngine/Perro / from_pairs

Method from_pairs

perro_source/core/perro_structs/src/structs/post_process.rs:157–173  ·  view source on GitHub ↗
(
        effects: Vec<PostProcessEffect>,
        mut names: Vec<Option<Cow<'static, str>>>,
    )

Source from the content-addressed store, hash-verified

155impl Default for PostProcessSet {
156 fn default() -> Self {
157 Self::new()
158 }
159}
160
161impl PostProcessSet {
162 pub fn new() -> Self {
163 Self {
164 entries: Vec::new(),
165 }
166 }
167
168 pub fn from_effects(effects: Vec<PostProcessEffect>) -> Self {
169 Self {
170 entries: effects.into_iter().map(PostProcessEntry::unnamed).collect(),
171 }
172 }
173
174 pub fn from_entries(entries: Vec<PostProcessEntry>) -> Self {
175 Self { entries }
176 }

Callers

nothing calls this directly

Calls 2

resize_withMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected