# Enum std::os::raw::c_void 1.1.0 [−] [src]

    #[repr(u8)]
    pub enum c_void {
        // some variants omitted
    }

Equivalent to C's `void` type when used as a pointer.

In essence, `*const c_void` is equivalent to C's `const void*` and `*mut c_void` is equivalent to C's `void*`. That said, this is not the same as C's `void` return type, which is Rust's `()` type.

Ideally, this type would be equivalent to `!`, but currently it may be more ideal to use `c_void` for FFI purposes.

## Trait Implementations

###

`impl Debug for c_void`

1.16.0
[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result`

[src]

Formats the value using the given formatter. Read more

## Auto Trait Implementations

###

`impl Send for c_void`

###

`impl Sync for c_void`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)