Struct conan_build::Conan

source ·
pub struct Conan { /* private fields */ }

Implementations§

source§

impl Conan

source

pub fn new() -> Conan

source

pub fn find_build_info() -> PathBuf

source

pub fn depends_on<'a, I: IntoIterator<Item = &'a str>>(&self, packages: I)

source

pub fn depends_on_optional<'a, I: IntoIterator<Item = &'a str>>( &self, packages: I )

source

pub fn depends_on_libcxx(&self)

source

pub fn get_depends_on<'a, I: IntoIterator<Item = &'a str>>( &self, packages: I ) -> DependsOn

source

pub fn get_depends_on_package(&self, package: &str) -> DependsOn

source

pub fn all_deps(&self) -> impl Iterator<Item = &str> + Clone

source

pub fn libs_for(&self, package: &str) -> Vec<&str>

source

pub fn includes_for(&self, package: &str) -> Vec<&str>

source

pub fn libdir_for(&self, package: &str) -> Vec<&str>

source

pub fn package(&self, package: &str) -> &Value

source

pub fn try_package(&self, package: &str) -> Option<&Value>

source

pub fn libdir_for_package(value: &Value) -> impl Iterator<Item = &str>

source

pub fn bindir_for(&self, package: &str) -> Vec<&str>

source

pub fn rootpath_for(&self, package: &str) -> &str

source

pub fn generate_env_source(&self)

source

pub fn is_shared(&self, lib: &str) -> bool

source

pub fn package_is_shared( options: &HashMap<String, String>, package: &str ) -> Option<bool>

source

pub fn libcxx(&self) -> Option<Lib>

Trait Implementations§

source§

impl Default for Conan

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Conan

§

impl RefUnwindSafe for Conan

§

impl Send for Conan

§

impl Sync for Conan

§

impl Unpin for Conan

§

impl UnwindSafe for Conan

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.