pub struct CompileResult {
pub source: String,
pub log: String,
pub module: Result<CuModule, nvrtcResult>,
pub lowered_names: HashMap<String, String>,
}Fields§
§source: String§log: String§module: Result<CuModule, nvrtcResult>§lowered_names: HashMap<String, String>Implementations§
Source§impl CompileResult
impl CompileResult
pub fn get_function_by_name( &self, name: &str, ) -> Result<Option<CuFunction>, nvrtcResult>
pub fn source_with_line_numbers(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompileResult
impl RefUnwindSafe for CompileResult
impl !Send for CompileResult
impl !Sync for CompileResult
impl Unpin for CompileResult
impl UnwindSafe for CompileResult
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 more