Skip to main content

DownloadsByPlatform

Trait DownloadsByPlatform 

Source
pub trait DownloadsByPlatform {
    // Required method
    fn for_platform(&self, platform: Platform) -> Option<&Download>;
}
Expand description

Extension trait for download slices, providing platform-based lookup.

Required Methods§

Source

fn for_platform(&self, platform: Platform) -> Option<&Download>

Returns the download entry for the given platform, if available.

Implementations on Foreign Types§

Source§

impl DownloadsByPlatform for [Download]

Source§

fn for_platform(&self, platform: Platform) -> Option<&Download>

Implementors§