pub struct LightConfig { /* private fields */ }

Implementations

Returns an instance with zero initialized data.

Returns the underlying bits.

Layout

The returned byte array is layed out in the same way as described here.

Converts the given bytes directly into the bitfield struct.

Returns the value of 0.

Returns the value of 0.

#Errors

If the returned value contains an invalid bit pattern for 0.

Returns a copy of the bitfield with the value of 0 set to the given value.

#Panics

If the given value is out of bounds for 0.

Returns a copy of the bitfield with the value of 0 set to the given value.

#Errors

If the given value is out of bounds for 0.

Sets the value of 0 to the given value.

#Panics

If the given value is out of bounds for 0.

Sets the value of 0 to the given value.

#Errors

If the given value is out of bounds for 0.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.